dmu_tx: Fix possible NULL pointer dereference
authorNathaniel Clark <Nathaniel.Clark@misrule.us>
Tue, 23 Jul 2013 17:32:57 +0000 (13:32 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 1 Aug 2013 16:48:07 +0000 (09:48 -0700)
commit7d63721118a82a29649a3d8ae4b4522afdad1449
tree2aa0edd1b90d7df9baedd563f883c6805b000ff7
parentcb543e6b5e98546a5caec29ca4b25abec98560a2
dmu_tx: Fix possible NULL pointer dereference

dmu_tx_hold_object_impl can return NULL on error.  Check for this
condition prior to dereferencing pointer.  This can only occur if
the passed object was invalid or unallocated.

Signed-off-by: Nathaniel Clark <Nathaniel.Clark@misrule.us>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1610
module/zfs/dmu_tx.c