From: Sage Weil Date: Tue, 23 Nov 2010 06:58:06 +0000 (-0800) Subject: ceph: avoid possible null deref in readdir after dir llseek X-Git-Tag: v2.6.37-rc6~33^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=884ea892763d4dfba509743f65961c782c0442db;p=pandora-kernel.git ceph: avoid possible null deref in readdir after dir llseek last may be NULL, but we dereference it in the else branch without checking. Normally it doesn't trigger because last == NULL when fpos == 2, but it could happen on a newly opened dir if the user seeks forward. Reported-by: Dan Carpenter Signed-off-by: Sage Weil --- Reading git-diff-tree failed