cifs: properly handle case where CIFSGetSrvInodeNumber fails
authorJeff Layton <jlayton@redhat.com>
Wed, 11 Feb 2009 13:08:26 +0000 (08:08 -0500)
committerSteve French <sfrench@us.ibm.com>
Sat, 21 Feb 2009 03:37:08 +0000 (03:37 +0000)
commit950ec52880fab89b957c7dc45e8b8476dd63741f
treedfb8bd4bdf0e455fefd453c4e899276641a60394
parent132ac7b77cc95a22d6118d327c96586759fbf006
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