]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: vme_user: added bound check to geoid
authorRiyan Dhiman <riyandhiman14@gmail.com>
Tue, 27 Aug 2024 12:56:05 +0000 (18:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2024 09:55:55 +0000 (11:55 +0200)
commita8a8b54350229f59c8ba6496fb5689a1632a59be
tree0a9c45f72ac042ad4e7c51e68a00dc9cd5d4f64e
parentc692c1b77b5da74bf94954cc65a05a348e5a5eae
staging: vme_user: added bound check to geoid

The geoid is a module parameter that allows users to hardcode the slot number.
A bound check for geoid was added in the probe function because only values
between 0 and less than VME_MAX_SLOT are valid.

Signed-off-by: Riyan Dhiman <riyandhiman14@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20240827125604.42771-2-riyandhiman14@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme_user/vme_fake.c
drivers/staging/vme_user/vme_tsi148.c