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.2.40~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ba15a927d8cf09cab753066736c87831a735987;p=pandora-kernel.git sysctl: fix null checking in bin_dn_node_address() commit df1778be1a33edffa51d094eeda87c858ded6560 upstream. 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" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed