Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vfs: live vfsmounts never have NULL ->mnt_sb

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro c972b4bc 4c1d5a64

+3 -4
+2 -3
drivers/usb/core/inode.c
··· 264 264 return -EINVAL; 265 265 } 266 266 267 - if (usbfs_mount && usbfs_mount->mnt_sb) 267 + if (usbfs_mount) 268 268 update_sb(usbfs_mount->mnt_sb); 269 269 270 270 return 0; ··· 500 500 * have around. 501 501 */ 502 502 if (!parent ) { 503 - if (usbfs_mount && usbfs_mount->mnt_sb) { 503 + if (usbfs_mount) 504 504 parent = usbfs_mount->mnt_root; 505 - } 506 505 } 507 506 508 507 if (!parent) {
+1 -1
fs/configfs/dir.c
··· 311 311 312 312 if (item->ci_parent) 313 313 parent = item->ci_parent->ci_dentry; 314 - else if (configfs_mount && configfs_mount->mnt_sb) 314 + else if (configfs_mount) 315 315 parent = configfs_mount->mnt_root; 316 316 else 317 317 return -EFAULT;