Re: [PATCH v2] part: Add check for NULL dev_part_str

2021-05-27 Thread Tom Rini
On Sat, May 15, 2021 at 02:13:54PM -0400, 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.

Re: [PATCH v2] part: Add check for NULL dev_part_str

2021-05-19 Thread Simon Glass
On Sat, 15 May 2021 at 12:14, 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. > > The u

[PATCH v2] part: 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. The unit test has also been updated to set bootdevice to a known value