diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-08-05 15:14:41 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-08-05 15:14:41 +0200 |
commit | 39417c2c0386a971a6973a6aaf779e82c9298020 (patch) | |
tree | 24e165f962c1355a98e3dc10edfc39643aaa5e78 /pcilib/kmem.c | |
parent | 8f5fb3a23bd0adcd4d0d021fdda571d3b3761bba (diff) | |
download | pcitool-39417c2c0386a971a6973a6aaf779e82c9298020.tar.gz pcitool-39417c2c0386a971a6973a6aaf779e82c9298020.tar.bz2 pcitool-39417c2c0386a971a6973a6aaf779e82c9298020.tar.xz pcitool-39417c2c0386a971a6973a6aaf779e82c9298020.zip |
Fix error-checking typo in kmem
Diffstat (limited to 'pcilib/kmem.c')
-rw-r--r-- | pcilib/kmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcilib/kmem.c b/pcilib/kmem.c index 2ff674f..469c63a 100644 --- a/pcilib/kmem.c +++ b/pcilib/kmem.c @@ -81,8 +81,8 @@ pcilib_kmem_handle_t *pcilib_alloc_kernel_memory(pcilib_t *ctx, pcilib_kmem_type memset(kbuf, 0, sizeof(pcilib_kmem_list_t) + nmemb * sizeof(pcilib_kmem_addr_t)); err = pcilib_lock(ctx->locks.mmap); - if (!err) { - pcilib_error("Error acquiring mmap lock"); + if (err) { + pcilib_error("Error (%i) acquiring mmap lock", err); return NULL; } |