]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Check for NULL in dmu_free_long_range_impl()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 24 Jul 2015 19:08:53 +0000 (12:08 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 Jul 2015 20:30:53 +0000 (13:30 -0700)
commitc97d30691c0d599e80370090988a79dd8175b5a8
tree840537e53d43e64ee0bf4ee2e305cf8c88b138ae
parent21d41d6806edce8217dfd5d16e74a6a8a4f5fe1b
Check for NULL in dmu_free_long_range_impl()

A NULL should never be passed as the dnode_t pointer to the function
dmu_free_long_range_impl().  Regardless, because we have a reported
occurrence of this let's add some error handling to catch this.
Better to report a reasonable error to caller than panic the system.

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