Skip to content
Commit 3bd548e5 authored by Li Zhong's avatar Li Zhong Committed by Song Liu
Browse files

drivers/md/md-bitmap: check the return value of md_bitmap_get_counter()



Check the return value of md_bitmap_get_counter() in case it returns
NULL pointer, which will result in a null pointer dereference.

v2: update the check to include other dereference

Signed-off-by: default avatarLi Zhong <floridsleeves@gmail.com>
Signed-off-by: default avatarSong Liu <song@kernel.org>
parent 4f8126bb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment