Messages in this thread | | | Date | Wed, 17 Mar 2004 13:44:34 -0800 | From | Mike Anderson <> | Subject | Re: 2.6.5-rc1 SCSI + st regressions (was: Linux 2.6.5-rc1) |
| |
Kai Makisara [Kai.Makisara@kolumbus.fi] wrote: > if (!st_class_member) { > printk(KERN_WARNING "st%d: class_simple_device_add failed\n", > dev_num);
Could you change the if check to use IS_ERR(st_class_member) so in the future if do_create_class_files return -E* we will not get a oops.
-andmike -- Michael Anderson andmike@us.ibm.com
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |