On 01/12/23 12:22:57, Greg KH wrote:
On Fri, Dec 01, 2023 at 11:05:27AM +0100, Jorge Ramirez-Ortiz wrote:
When RPMB was converted to a character device, it added support for multiple RPMB partitions (Commit 97548575bef3 ("mmc: block: Convert RPMB to a character device").
One of the changes in this commit was transforming the variable target_part defined in __mmc_blk_ioctl_cmd into a bitmask.
This inadvertedly regressed the validation check done in mmc_blk_part_switch_pre() and mmc_blk_part_switch_post().
This commit fixes that regression.
Fixes: 97548575bef3 ("mmc: block: Convert RPMB to a character device") Signed-off-by: Jorge Ramirez-Ortiz jorge@foundries.io Cc: stable@vger.kernel.org # v6.0+
Why only 6.0 when the "Fixes:" tag goes back to a 4.14 commit?
ops so sorry (was WIP and got distracted press sent and forgot), will fix and add Linus' Reviewed-by.
thanks,
greg k-h