Btrfs: deal with NULL acl sent to btrfs_set_acl
authorChris Mason <chris.mason@oracle.com>
Mon, 18 Jan 2010 01:36:18 +0000 (20:36 -0500)
committerChris Mason <chris.mason@oracle.com>
Mon, 18 Jan 2010 01:40:22 +0000 (20:40 -0500)
commita9cc71a60c29a09174bee2fcef8f924c529fd4b7
treed8ae909f351fda769f21ad58ce9fbe211657ecf2
parent6c090a11e1c403b727a6a8eff0b97d5fb9e95cb5
Btrfs: deal with NULL acl sent to btrfs_set_acl

It is legal for btrfs_set_acl to be sent a NULL acl.  This
makes sure we don't dereference it.  A similar patch was sent by
Johannes Hirte <johannes.hirte@fem.tu-ilmenau.de>

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/acl.c