Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4edc53c1 authored by Jeff Layton's avatar Jeff Layton Committed by Steve French
Browse files

cifs: fix error handling when cifscreds key payload is an error

parent 98e96852
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}