From: Cong Wang Date: Tue, 14 Oct 2014 19:35:08 +0000 (-0700) Subject: rds: avoid calling sock_kfree_s() on allocation failure X-Git-Tag: omap-for-v3.19/prcm-cleanup~58^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dee49f203a7feef5d00c416b7dc7e34a7caba8e1;p=pandora-kernel.git 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: rucsoftsec@gmail.com Cc: Chien Yen Cc: Stephen Hemminger Signed-off-by: Cong Wang Signed-off-by: Cong Wang Signed-off-by: David S. Miller --- Reading git-diff-tree failed