From: Xi Wang Date: Thu, 28 Feb 2013 01:05:21 +0000 (-0800) Subject: sysctl: fix null checking in bin_dn_node_address() X-Git-Tag: v3.9-rc1~46^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df1778be1a33edffa51d094eeda87c858ded6560;p=pandora-kernel.git sysctl: fix null checking in bin_dn_node_address() The null check of `strchr() + 1' is broken, which is always non-null, leading to OOB read. Instead, check the result of strchr(). Signed-off-by: Xi Wang Cc: "Eric W. Biederman" Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed