* [PATCH -next] loopdev: fix error return code in loop_add()
@ 2013-03-22 11:29 Wei Yongjun
2013-03-22 14:59 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2013-03-22 11:29 UTC (permalink / raw)
To: akpm, axboe, yan, tj, ebiederm; +Cc: yongjun_wei, linux-kernel
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Fix to return a negative error code from the error handling
case, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
drivers/block/loop.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 1e0cc5a..4afe38e 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -1638,6 +1638,7 @@ static int loop_add(struct loop_device **l, int i)
goto out_free_dev;
i = err;
+ err = -ENOMEM;
lo->lo_queue = blk_alloc_queue(GFP_KERNEL);
if (!lo->lo_queue)
goto out_free_dev;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] loopdev: fix error return code in loop_add()
2013-03-22 11:29 [PATCH -next] loopdev: fix error return code in loop_add() Wei Yongjun
@ 2013-03-22 14:59 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2013-03-22 14:59 UTC (permalink / raw)
To: Wei Yongjun; +Cc: akpm, yan, tj, ebiederm, yongjun_wei, linux-kernel
On Fri, Mar 22 2013, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Fix to return a negative error code from the error handling
> case, as returned elsewhere in this function.
Applied, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-22 15:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-22 11:29 [PATCH -next] loopdev: fix error return code in loop_add() Wei Yongjun
2013-03-22 14:59 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).