Re: [PATCH] dm: Add check for NULL dev_part_str

2021-05-15 Thread Sean Anderson
On 5/15/21 1:55 PM, Heinrich Schuchardt wrote: On 5/15/21 6:36 PM, Sean Anderson wrote: 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

Re: [PATCH] dm: Add check for NULL dev_part_str

2021-05-15 Thread Heinrich Schuchardt
On 5/15/21 6:36 PM, Sean Anderson wrote: 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. Fixes: 7194527b6a ("cmd:

Re: [PATCH] dm: Add check for NULL dev_part_str

2021-05-15 Thread Sean Anderson
Re: [PATCH] dm: Add check for NULL dev_part_str This should probably be "part: ..." On 5/15/21 12:36 PM, Sean Anderson wrote: 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

[PATCH] dm: Add check for NULL dev_part_str

2021-05-15 Thread Sean Anderson
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. Fixes: 7194527b6a ("cmd: fs: Use part_get_info_by_dev_and_name_or_num