aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorSachin Prabhu <[email protected]>2014-01-31 14:27:16 +0000
committerSteve French <[email protected]>2014-01-31 15:06:43 +0000
commita9a315d41407cd1079eb815f4adae897cc08b0d2 (patch)
treeabd61b5ea4012204d5c973d5b261b2f004bbbfb5 /drivers/net/xen-netback/interface.c
parent[CIFS] Fix SMB2 mounts so they don't try to set or get xattrs via cifs (diff)
downloadkernel-a9a315d41407cd1079eb815f4adae897cc08b0d2.tar.gz
kernel-a9a315d41407cd1079eb815f4adae897cc08b0d2.zip
cifs: Fix check for regular file in couldbe_mf_symlink()
MF Symlinks are regular files containing content in a specified format. The function couldbe_mf_symlink() checks the mode for a set S_IFREG bit as a test to confirm that it is a regular file. This bit is also set for other filetypes and simply checking for this bit being set may return false positives. We ensure that we are actually checking for a regular file by using the S_ISREG macro to test instead. Signed-off-by: Sachin Prabhu <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Reported-by: Neil Brown <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions