From: Dan Carpenter Date: Fri, 10 Sep 2010 01:58:10 +0000 (+0000) Subject: ppp: potential NULL dereference in ppp_mp_explode() X-Git-Tag: v2.6.36-rc5~12^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3429769bc67c7a48b3c01b2452b32171b3450202;p=pandora-kernel.git ppp: potential NULL dereference in ppp_mp_explode() Smatch complains because we check whether "pch->chan" is NULL and then dereference it unconditionally on the next line. Partly the reason this bug was introduced is because code was too complicated. I've simplified it a little. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- Reading git-diff-tree failed