WSL2-Linux-Kernel/net/atm
Dan Carpenter fdd1a8103a net: atm: clean up a range check
The code works fine but the problem is that check for negatives is a
no-op:

	if (arg < 0)
		i = 0;

The "i" value isn't used.  We immediately overwrite it with:

	i = array_index_nospec(arg, MAX_LEC_ITF);

The array_index_nospec() macro returns zero if "arg" is out of bounds so
this works, but the dead code is confusing and it doesn't look very
intentional.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-05-05 10:25:52 -07:00
..
Kconfig
Makefile
addr.c
addr.h
atm_misc.c
atm_sysfs.c
br2684.c
clip.c ipv4: Prepare rtable for IPv6 gateway 2019-04-08 15:22:40 -07:00
common.c
common.h
ioctl.c net: rework SIOCGSTAMP ioctl handling 2019-04-19 14:07:40 -07:00
lec.c net: atm: clean up a range check 2019-05-05 10:25:52 -07:00
lec.h
lec_arpc.h
mpc.c
mpc.h
mpoa_caches.c
mpoa_caches.h
mpoa_proc.c
pppoatm.c
proc.c atm: clean up vcc_seq_next() 2019-02-16 18:12:22 -08:00
protocols.h
pvc.c net: rework SIOCGSTAMP ioctl handling 2019-04-19 14:07:40 -07:00
raw.c
resources.c net: atm: Add another IS_ENABLED(CONFIG_COMPAT) in atm_dev_ioctl 2019-03-07 10:14:50 -08:00
resources.h
signaling.c
signaling.h
svc.c net: rework SIOCGSTAMP ioctl handling 2019-04-19 14:07:40 -07:00