Add missing NULL in zpl_xattr_handlers
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 14 Mar 2012 19:36:49 +0000 (12:36 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 15 Mar 2012 22:18:29 +0000 (15:18 -0700)
commit77a405ae52e4a902f7cc3790e2a73d044c66d962
treeb2c4a6c40139ec4c9b44fdb3d812993cbd839cf0
parent42cb3819f1a1f536105faac81ffc150f3da90a80
Add missing NULL in zpl_xattr_handlers

The xattr_resolve_name() helper function expects the registered
list of xattr handlers to be NULL terminated.  This NULL was
accidentally missing which could result in a NULL dereference.

Interestingly this issue only manifested itself on certain 32-bit
systems.  Presumably on 64-bit kernels we just always happen to
get lucky and the memory following the structure is zeroed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #594
module/zfs/zpl_xattr.c