linux/drivers/net/wwan
Dan Carpenter 4f3f2e3fa0 net: iosm: Prevent underflow in ipc_chnl_cfg_get()
The bounds check on "index" doesn't catch negative values.  Using
ARRAY_SIZE() directly is more readable and more robust because it prevents
negative values for "index".  Fortunately we only pass valid values to
ipc_chnl_cfg_get() so this patch does not affect runtime.

Reported-by: Solomon Ucko <solly.ucko@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: M Chetan Kumar <m.chetan.kumar@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-08-16 13:40:18 +01:00
..
iosm net: iosm: Prevent underflow in ipc_chnl_cfg_get() 2021-08-16 13:40:18 +01:00
Kconfig net: wwan: Add RPMSG WWAN CTRL driver 2021-06-18 13:13:40 -07:00
Makefile net: wwan: Add RPMSG WWAN CTRL driver 2021-06-18 13:13:40 -07:00
mhi_wwan_ctrl.c net: wwan: mhi_wwan_ctrl: Fix possible deadlock 2021-08-07 09:35:48 +01:00
rpmsg_wwan_ctrl.c net: wwan: Allow WWAN drivers to provide blocking tx and poll function 2021-06-18 13:13:40 -07:00
wwan_core.c wwan: core: Avoid returning NULL from wwan_create_dev() 2021-08-12 09:53:02 -07:00
wwan_hwsim.c wwan: core: support default netdev creation 2021-06-22 10:01:16 -07:00