]> Git Repo - linux.git/commit - net/rds/rdma.c
rds: avoid calling sock_kfree_s() on allocation failure
authorCong Wang <[email protected]>
Tue, 14 Oct 2014 19:35:08 +0000 (12:35 -0700)
committerDavid S. Miller <[email protected]>
Tue, 14 Oct 2014 21:00:19 +0000 (17:00 -0400)
commitdee49f203a7feef5d00c416b7dc7e34a7caba8e1
treef3ba47780b9bc7362479f3caae851fe527543f35
parent22c0b963d7400971f4c5a1a67b083e3742996640
rds: avoid calling sock_kfree_s() on allocation failure

It is okay to free a NULL pointer but not okay to mischarge the socket optmem
accounting. Compile test only.

Reported-by: [email protected]
Cc: Chien Yen <[email protected]>
Cc: Stephen Hemminger <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/rds/rdma.c
This page took 0.050838 seconds and 4 git commands to generate.