projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[cascardo/linux.git]
/
drivers
/
usb
/
wusbcore
/
crypto.c
diff --git
a/drivers/usb/wusbcore/crypto.c
b/drivers/usb/wusbcore/crypto.c
index
de089f3
..
79451f7
100644
(file)
--- a/
drivers/usb/wusbcore/crypto.c
+++ b/
drivers/usb/wusbcore/crypto.c
@@
-339,8
+339,10
@@
ssize_t wusb_prf(void *out, size_t out_size,
goto error_setkey_aes;
}
scratch = kmalloc(sizeof(*scratch), GFP_KERNEL);
- if (!scratch)
+ if (!scratch) {
+ result = -ENOMEM;
goto error_alloc_scratch;
+ }
for (bitr = 0; bitr < (len + 63) / 64; bitr++) {
sfn_le = cpu_to_le64(sfn++);