aboutsummaryrefslogtreecommitdiffstats
path: root/udev/Makefile.am
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2023-02-07 04:51:56 -0500
committerBrian Behlendorf <[email protected]>2023-02-28 17:31:50 -0800
commit5cc49509013db4aa23f8e21eafdbde8403d5dffa (patch)
tree28634a7f99adb87bbc96058d2182f26e0b2e369b /udev/Makefile.am
parent9a14ce43c3d6a9939804215bbbe66de5115ace42 (diff)
Suppress static analyzer warning in dbuf_hold_copy()
Clang's static analyzer claims that dbuf_hold_copy() will have a NULL pointer dereference in data->b_data when called by dbuf_hold_impl(). This is impossible because data is dr->dt.dl.dr_data, which is non-NULL whenever db->db_level == 0, which is always the case whenever dbuf_hold_impl() calls dbuf_hold_copy(). We add an assertion to suppress the complaint. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Brian Atkinson <[email protected]> Signed-off-by: Richard Yao <[email protected]> Closes #14470
Diffstat (limited to 'udev/Makefile.am')
0 files changed, 0 insertions, 0 deletions