mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-26 09:54:22 +03:00
Fix coverity defects: CID 147553
CID 147553: Type:Dereference null return value Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: cao.xuewen <cao.xuewen@zte.com.cn> Closes #5305
This commit is contained in:
parent
2bac68145f
commit
981b21260e
@ -1249,7 +1249,8 @@ dmu_tx_unassign(dmu_tx_t *tx)
|
||||
* Walk the transaction's hold list, removing the hold on the
|
||||
* associated dnode, and notifying waiters if the refcount drops to 0.
|
||||
*/
|
||||
for (txh = list_head(&tx->tx_holds); txh != tx->tx_needassign_txh;
|
||||
for (txh = list_head(&tx->tx_holds);
|
||||
txh && txh != tx->tx_needassign_txh;
|
||||
txh = list_next(&tx->tx_holds, txh)) {
|
||||
dnode_t *dn = txh->txh_dnode;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user