projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rxrpc: Fix error check on ->alloc_txbuf()
[linux-2.6-microblaze.git]
/
net
/
rxrpc
/
sendmsg.c
diff --git
a/net/rxrpc/sendmsg.c
b/net/rxrpc/sendmsg.c
index
6f76576
..
894b8fa
100644
(file)
--- a/
net/rxrpc/sendmsg.c
+++ b/
net/rxrpc/sendmsg.c
@@
-349,8
+349,8
@@
reload:
*/
remain = more ? INT_MAX : msg_data_left(msg);
txb = call->conn->security->alloc_txbuf(call, remain, sk->sk_allocation);
- if (
IS_ERR(txb)
) {
- ret =
PTR_ERR(txb)
;
+ if (
!txb
) {
+ ret =
-ENOMEM
;
goto maybe_error;
}
}