- ds1374-check-for-workqueue-creation.patch removed from -mm tree

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

 



The patch titled
     DS1374: check for workqueue creation
has been removed from the -mm tree.  Its filename was
     ds1374-check-for-workqueue-creation.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: DS1374: check for workqueue creation
From: "Cyrill V. Gorcunov" <gorcunov@xxxxxxxxx>

Check if workqueue creation failed.  Further usage of NULL pointed
workqueue is not good I guess ;)

Signed-off-by: Cyrill V. Gorcunov <gorcunov@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/i2c/chips/ds1374.c |    4 ++++
 1 file changed, 4 insertions(+)

diff -puN drivers/i2c/chips/ds1374.c~ds1374-check-for-workqueue-creation drivers/i2c/chips/ds1374.c
--- a/drivers/i2c/chips/ds1374.c~ds1374-check-for-workqueue-creation
+++ a/drivers/i2c/chips/ds1374.c
@@ -207,6 +207,10 @@ static int ds1374_probe(struct i2c_adapt
 	client->driver = &ds1374_driver;
 
 	ds1374_workqueue = create_singlethread_workqueue("ds1374");
+	if (!ds1374_workqueue) {
+		kfree(client);
+		return -ENOMEM;	/* most expected reason */
+	}
 
 	if ((rc = i2c_attach_client(client)) != 0) {
 		kfree(client);
_

Patches currently in -mm which might be from gorcunov@xxxxxxxxx are

mtd-esb2-check-for-closed-rom-window.patch
usb-elan-ftdi-check-for-workqueue-creation-v2.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

  Powered by Linux