Found using checkpatch.pl Signed-off-by: Lavinia Tache <lavinia.tac...@gmail.com> --- drivers/base/driver.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/base/driver.c b/drivers/base/driver.c index 9e29943..4eabfe2 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c @@ -103,6 +103,7 @@ int driver_create_file(struct device_driver *drv, const struct driver_attribute *attr) { int error; + if (drv) error = sysfs_create_file(&drv->p->kobj, &attr->attr); else -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/