cifs: properly handle case where CIFSGetSrvInodeNumber fails
authorJeff Layton <jlayton@redhat.com>
Wed, 11 Feb 2009 13:08:26 +0000 (08:08 -0500)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 11 Mar 2011 15:18:51 +0000 (17:18 +0200)
commitd4d7051a8b2f9e7e16aad7f7c2278847e5514b99
tree391475c322170d39dbbb2644b0ad000217ffee52
parent7bf51deb6db1ba893f992634f4381418431167e2
cifs: properly handle case where CIFSGetSrvInodeNumber fails

...if it does then we pass a pointer to an unintialized variable for
the inode number to cifs_new_inode. Have it pass a NULL pointer instead.

Also tweak the function prototypes to reduce the amount of casting.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsproto.h
fs/cifs/inode.c
fs/cifs/readdir.c