diff options
Diffstat (limited to 'libmount/src/context_loopdev.c')
-rw-r--r-- | libmount/src/context_loopdev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libmount/src/context_loopdev.c b/libmount/src/context_loopdev.c index 290e0d3d..da246e3b 100644 --- a/libmount/src/context_loopdev.c +++ b/libmount/src/context_loopdev.c @@ -155,7 +155,9 @@ int mnt_context_setup_loopdev(struct libmnt_context *cxt) lo_flags |= LO_FLAGS_READ_ONLY; } - loopcxt_init(&lc, 0); + rc = loopcxt_init(&lc, 0); + if (rc) + return rc; ON_DBG(CXT, loopcxt_enable_debug(&lc, 1)); |