From: Eric Sandeen Date: Wed, 25 Mar 2015 03:54:25 +0000 (+1100) Subject: xfs: fix NULL pointer dereference in xfs_filestream_lookup_ag() X-Git-Tag: omap-for-v4.2/o2_dc~34^2~3^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b26384dc52edba2f5fcc2b38eccc98e1f44bb379;p=pandora-kernel.git xfs: fix NULL pointer dereference in xfs_filestream_lookup_ag() If xfs_filestream_get_parent() fails, we have a null pip, goto out, and attempt to IRELE(NULL). This causes a null pointer dereference and BUG(). Fix this by directly returning NULLAGNUMBER in this case. Reported-by: Adrien Nader Signed-off-by: Eric Sandeen Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- Reading git-diff-tree failed