Skip to content
Snippets Groups Projects
Commit 5d8d046f authored by Li Zhong's avatar Li Zhong Committed by Greg Kroah-Hartman
Browse files

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


[ Upstream commit 3bd548e5 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 2b1b145c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment