From: Rafael J. Wysocki <rjw@sisk.pl> My test box crashes during suspend, while the nonboot CPUs are being disabled, because sysfs_hash_and_remove() doesn't check if dir_sd passed to it is not NULL. Fix it. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> --- fs/sysfs/inode.c | 2 ++ 1 file changed, 2 insertions(+) Index: linux-2.6.23-rc1-mm2/fs/sysfs/inode.c =================================================================== --- linux-2.6.23-rc1-mm2.orig/fs/sysfs/inode.c +++ linux-2.6.23-rc1-mm2/fs/sysfs/inode.c @@ -191,6 +191,8 @@ int sysfs_hash_and_remove(struct kobject struct sysfs_addrm_cxt acxt; struct sysfs_dirent **pos, *sd; + if (!dir_sd) + return -ENOENT; sysfs_addrm_start(&acxt, dir_sd); if (!sysfs_resolve_for_remove(kobj, &acxt.parent_sd)) goto addrm_finish; -
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Andrew Morton | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
| Greg KH | Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching |
git: | |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Arjan van de Ven | Re: [GIT]: Networking |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Jarek Poplawski | Re: [BUG] New Kernel Bugs |
