git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
can: isotp: isotp_sendmsg(): fix return error fix on TX path
[sfrench/cifs-2.6.git]
/
net
/
can
/
isotp.c
diff --git
a/net/can/isotp.c
b/net/can/isotp.c
index 84f9aba029017c47349aaed84639228a538fece1..ca9d728d6d7278e1fa7b542c3205ff55a4798df3 100644
(file)
--- a/
net/can/isotp.c
+++ b/
net/can/isotp.c
@@
-1112,8
+1112,9
@@
wait_free_buffer:
if (err)
goto err_event_drop;
- if (sk->sk_err)
- return -sk->sk_err;
+ err = sock_error(sk);
+ if (err)
+ return err;
}
return size;