Files
mirror_zfs/module/zfs
Richard Yao 9e2be2dfbd Fix potential NULL pointer dereference regression
945b407486 neglected to `NULL` check
`tx->tx_objset`, which is already done in the function. This upset
Coverity, which complained about a "dereference after null check".

Upon inspection, it was found that whenever `dmu_tx_create_dd()` is
called followed by `dmu_tx_assign()`, such as in
`dsl_sync_task_common()`, `tx->tx_objset` will be `NULL`.

Reported-by: Coverity (CID 1527261)
Reviewed-by: Mariusz Zaborski <mariusz.zaborski@klarasystems.com>
Reviewed-by: Youzhong Yang <yyang@mathworks.com>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14170
2022-11-10 13:56:28 -08:00
..
2022-03-15 15:13:42 -07:00
2022-03-15 15:13:42 -07:00
2022-10-20 11:57:15 -07:00
2022-10-29 13:05:11 -07:00
2022-10-27 09:54:54 -07:00
2022-10-27 09:54:54 -07:00
2022-03-15 15:13:42 -07:00
2022-03-15 15:13:42 -07:00
2022-01-07 10:36:49 -08:00
2022-01-12 16:14:36 -08:00
2019-06-19 09:48:12 -07:00
2022-10-12 11:25:18 -07:00
2022-09-30 15:34:39 -07:00
2022-03-15 15:13:42 -07:00
2022-10-29 13:05:11 -07:00
2022-10-27 09:54:54 -07:00
2022-10-29 13:05:11 -07:00
2022-11-10 13:37:12 -08:00
2022-10-20 11:57:15 -07:00
2022-10-20 11:57:15 -07:00
2022-09-02 13:31:19 -07:00
2022-10-29 13:05:11 -07:00
2022-11-03 10:17:17 -07:00
2022-10-28 09:49:20 -07:00
2022-10-27 09:54:54 -07:00
2022-10-28 09:49:20 -07:00