fs: NULL dereference in posix_acl_to_xattr()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Feb 2014 09:05:49 +0000 (12:05 +0300)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 25 Feb 2014 10:01:09 +0000 (10:01 +0000)
commit47ba9734403770a4c5e685b01f0a72b835dd4fff
treeac4badd94ef5153496a4159e1bc6614333771d90
parent022ef4feed0c648aeb72d0c8ad06d266de08f525
fs: NULL dereference in posix_acl_to_xattr()

This patch moves the dereference of "buffer" after the check for NULL.
The only place which passes a NULL parameter is gfs2_set_acl().

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/posix_acl.c