HomeFreeBSD

dmu_tx: Fix possible NULL pointer dereference

Description

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

Details

Provenance
Nathaniel Clark <Nathaniel.Clark@misrule.us>Authored on Jul 23 2013, 5:32 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 1 2013, 4:48 PM
Parents
rGcb543e6b5e98: Remove b_thawed from arc_buf_hdr_t
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG7d63721118a8: dmu_tx: Fix possible NULL pointer dereference (authored by Nathaniel Clark <Nathaniel.Clark@misrule.us>).Aug 1 2013, 4:48 PM