James Morris wrote:Here is an example of what I would consider "reasonable code" that would fail: int example() { struct socket *conn_socket = NULL; int err; ... if ((err = kernel_accept(sock, &conn_socket, 0)) < 0) goto out_cleanup; [do whatever with conn_socket] out_cleanup: if (conn_socket != NULL) sock_release(&conn_socket); return err; } Without the patch, the double sock_release() will cause a BUG(). Also compare to sock_create_lite(), which sets *res to NULL on error. Tony - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Amit K. Arora | [RFC] Heads up on sys_fallocate() |
| Linus Torvalds | Linux 2.6.23-rc9 and a heads-up for the 2.6.24 series.. |
| Paul Jackson | Re: cpuset-remove-sched-domain-hooks-from-cpusets |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
git: | |
| Linus Torvalds | Re: [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [klibc] [patch] import socket defines |
