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)
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

diff --cc fs/posix_acl.c
Simple merge