|
@@ -318,8 +318,11 @@ int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const void *ns, const cha
|
|
struct sysfs_addrm_cxt acxt;
|
|
struct sysfs_addrm_cxt acxt;
|
|
struct sysfs_dirent *sd;
|
|
struct sysfs_dirent *sd;
|
|
|
|
|
|
- if (!dir_sd)
|
|
|
|
|
|
+ if (!dir_sd) {
|
|
|
|
+ WARN(1, KERN_WARNING "sysfs: can not remove '%s', no directory\n",
|
|
|
|
+ name);
|
|
return -ENOENT;
|
|
return -ENOENT;
|
|
|
|
+ }
|
|
|
|
|
|
sysfs_addrm_start(&acxt, dir_sd);
|
|
sysfs_addrm_start(&acxt, dir_sd);
|
|
|
|
|