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
hostfs: Handle page write errors correctly
[linux-2.6-microblaze.git]
/
net
/
core
/
skmsg.c
diff --git
a/net/core/skmsg.c
b/net/core/skmsg.c
index
22b983a
..
b0fcd02
100644
(file)
--- a/
net/core/skmsg.c
+++ b/
net/core/skmsg.c
@@
-699,6
+699,11
@@
struct sk_psock *sk_psock_init(struct sock *sk, int node)
write_lock_bh(&sk->sk_callback_lock);
+ if (sk_is_inet(sk) && inet_csk_has_ulp(sk)) {
+ psock = ERR_PTR(-EINVAL);
+ goto out;
+ }
+
if (sk->sk_user_data) {
psock = ERR_PTR(-EBUSY);
goto out;