The patch titled nbd: check the return value of sysfs_create_file has been added to the -mm tree. Its filename is nbd-check-the-return-value-of-sysfs_create_file.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: nbd: check the return value of sysfs_create_file From: WANG Cong <xiyou.wangcong@xxxxxxxxx> Signed-off-by: WANG Cong <xiyou.wangcong@xxxxxxxxx> Cc: Paul Clements <paul.clements@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/block/nbd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff -puN drivers/block/nbd.c~nbd-check-the-return-value-of-sysfs_create_file drivers/block/nbd.c --- a/drivers/block/nbd.c~nbd-check-the-return-value-of-sysfs_create_file +++ a/drivers/block/nbd.c @@ -373,7 +373,10 @@ static void nbd_do_it(struct nbd_device BUG_ON(lo->magic != LO_MAGIC); lo->pid = current->pid; - sysfs_create_file(&lo->disk->kobj, &pid_attr.attr); + if (sysfs_create_file(&lo->disk->kobj, &pid_attr.attr)) { + printk(KERN_ERR "nbd: sysfs_create_file failed!"); + return; + } while ((req = nbd_read_stat(lo)) != NULL) nbd_end_request(req); _ Patches currently in -mm which might be from xiyou.wangcong@xxxxxxxxx are partitions-check-the-return-value-of-kobject_add-etc.patch nbd-check-the-return-value-of-sysfs_create_file.patch nbd-check-the-return-value-of-sysfs_create_file-fix.patch vt-add-color-support-to-the-underline-and-italic-attributes-fix-2.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