summaryrefslogtreecommitdiff
path: root/include/linux/bitmap.h
diff options
context:
space:
mode:
authorSean Anderson <[email protected]>2021-05-15 14:13:54 -0400
committerTom Rini <[email protected]>2021-05-26 17:26:07 -0400
commit26de4296cc20bb45eb40560b4a4a98fa90a16a28 (patch)
treede1445c07026f8560505516b883685397fbbcb34 /include/linux/bitmap.h
parent1e7879045f6c20f68ce2c6fcce7ec187e8844b51 (diff)
part: Add check for NULL dev_part_str
Some callers (e.g. cmd/fs.c) of fs_set_blk_dev may use a NULL dev_part_str. While blk_get_device_part_str handles this fine, part_get_info_by_dev_and_name does not. This fixes commands crashing when implicitly using bootdevice. The unit test has also been updated to set bootdevice to a known value and to restore it after we are done. Fixes: 7194527b6a ("cmd: fs: Use part_get_info_by_dev_and_name_or_num to parse partitions") Reported-by: Heinrich Schuchardt <[email protected]> Signed-off-by: Sean Anderson <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/linux/bitmap.h')
0 files changed, 0 insertions, 0 deletions