[folded-merged] loop-use-worker-per-cgroup-instead-of-kworker-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: loop: fix IS_ERR() vs NULL bugs in loop_prepare_queue()
has been removed from the -mm tree.  Its filename was
     loop-use-worker-per-cgroup-instead-of-kworker-fix.patch

This patch was dropped because it was folded into loop-use-worker-per-cgroup-instead-of-kworker.patch

------------------------------------------------------
From: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Subject: loop: fix IS_ERR() vs NULL bugs in loop_prepare_queue()

The alloc_workqueue() function returns NULL on error, it never returns
error pointers.

Link: http://lkml.kernel.org/r/20200228172136.h5dvwvrg5yfywxss@kili.mountain
Fixes: 29dab2122492 ("loop: use worker per cgroup instead of kworker")
Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Acked-by: Dan Schatzberg <schatzberg.dan@xxxxxxxxx>
Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/block/loop.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/block/loop.c~loop-use-worker-per-cgroup-instead-of-kworker-fix
+++ a/drivers/block/loop.c
@@ -901,7 +901,7 @@ static int loop_prepare_queue(struct loo
 					WQ_UNBOUND | WQ_FREEZABLE |
 					WQ_MEM_RECLAIM,
 					lo->lo_number);
-	if (IS_ERR(lo->workqueue))
+	if (!lo->workqueue)
 		return -ENOMEM;
 
 	return 0;
_

Patches currently in -mm which might be from dan.carpenter@xxxxxxxxxx are

lib-test_kmod-remove-a-null-test.patch
loop-use-worker-per-cgroup-instead-of-kworker.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux