Commit bb415b9d authored by Dave Jones's avatar Dave Jones

[PATCH] Fix PPPoE oops.

From Andi Kleen
parent 4305b879
...@@ -644,8 +644,10 @@ int pppoe_connect(struct socket *sock, struct sockaddr *uservaddr, ...@@ -644,8 +644,10 @@ int pppoe_connect(struct socket *sock, struct sockaddr *uservaddr,
release_sock(sk); release_sock(sk);
return error; return error;
err_put: err_put:
if (po->pppoe_dev) {
dev_put(po->pppoe_dev); dev_put(po->pppoe_dev);
po->pppoe_dev = NULL; po->pppoe_dev = NULL;
}
goto end; goto end;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment