The patch titled Subject: c2port: class_create() returns an ERR_PTR has been added to the -mm tree. Its filename is c2port-class_create-returns-an-err_ptr.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Subject: c2port: class_create() returns an ERR_PTR class_create() doesn't return a NULL, it only returns ERR_PTRs. Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/misc/c2port/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/misc/c2port/core.c~c2port-class_create-returns-an-err_ptr drivers/misc/c2port/core.c --- a/drivers/misc/c2port/core.c~c2port-class_create-returns-an-err_ptr +++ a/drivers/misc/c2port/core.c @@ -984,9 +984,9 @@ static int __init c2port_init(void) " - (C) 2007 Rodolfo Giometti\n"); c2port_class = class_create(THIS_MODULE, "c2port"); - if (!c2port_class) { + if (IS_ERR(c2port_class)) { printk(KERN_ERR "c2port: failed to allocate class\n"); - return -ENOMEM; + return PTR_ERR(c2port_class); } c2port_class->dev_attrs = c2port_attrs; _ Subject: Subject: c2port: class_create() returns an ERR_PTR Patches currently in -mm which might be from dan.carpenter@xxxxxxxxxx are origin.patch linux-next.patch pps-class_create-returns-an-err_ptr-not-null.patch c2port-class_create-returns-an-err_ptr.patch slab-introduce-kmalloc_array.patch mm-compaction-make-compact_control-order-signed.patch mm-compaction-make-compact_control-order-signed-fix.patch drivers-leds-leds-tca6507c-cleanup-error-handling-in-tca6507_probe.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