aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorJeff Layton <[email protected]>2011-08-05 09:02:40 -0400
committerSteve French <[email protected]>2011-08-05 15:03:09 +0000
commit80975d21aae2136ccae1ce914a1602dc1d8b0795 (patch)
treee2c5d8b441d3ff206c9dc671ade8f3d7c453e2d2 /net/unix/sysctl_net_unix.c
parentf9e8c45002cacad536b338dfa9e910e341a49c31 (diff)
cifs: cope with negative dentries in cifs_get_root
The loop around lookup_one_len doesn't handle the case where it might return a negative dentry, which can cause an oops on the next pass through the loop. Check for that and break out of the loop with an error of -ENOENT if there is one. Fixes the panic reported here: https://bugzilla.redhat.com/show_bug.cgi?id=727927 Reported-by: TR Bentley <[email protected]> Reported-by: Iain Arnell <[email protected]> Cc: Al Viro <[email protected]> Cc: [email protected] Signed-off-by: Jeff Layton <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions