OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98e9685
)
cifs: fix error handling when cifscreds key payload is an error
author
Jeff Layton
<jlayton@redhat.com>
Tue, 7 Feb 2012 11:30:51 +0000
(06:30 -0500)
committer
Steve French
<smfrench@gmail.com>
Wed, 8 Feb 2012 04:25:26 +0000
(22:25 -0600)
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/connect.c
patch
|
blob
|
history
diff --git
a/fs/cifs/connect.c
b/fs/cifs/connect.c
index
9c28865
..
940189b
100644
(file)
--- a/
fs/cifs/connect.c
+++ b/
fs/cifs/connect.c
@@
-2125,7
+2125,7
@@
cifs_set_cifscreds(struct smb_vol *vol, struct cifs_ses *ses)
down_read(&key->sem);
upayload = key->payload.data;
if (IS_ERR_OR_NULL(upayload)) {
- rc =
PTR_ERR(key)
;
+ rc =
upayload ? PTR_ERR(upayload) : -EINVAL
;
goto out_key_put;
}