linux-stable/drivers/ntb
Allen Hubbe 8c9edf63e7 NTB: Fix zero size or integer overflow in ntb_set_mw
A plain 32 bit integer will overflow for values over 4GiB.

Change the plain integer size to the appropriate size type in
ntb_set_mw.  Change the type of the size parameter and two local
variables used for size.

Even if there is no overflow, a size of zero is invalid here.

Reported-by: Juyoung Jung <jjung@micron.com>
Signed-off-by: Allen Hubbe <Allen.Hubbe@emc.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
2015-08-09 16:32:22 -04:00
..
hw NTB: Add split BAR output for debugfs stats 2015-07-04 14:09:32 -04:00
test NTB: Add tool test client 2015-07-04 14:08:17 -04:00
Kconfig NTB: Add ping pong test client 2015-07-04 14:07:42 -04:00
Makefile NTB: Add ping pong test client 2015-07-04 14:07:42 -04:00
ntb.c NTB: Add NTB hardware abstraction layer 2015-07-04 14:04:44 -04:00
ntb_transport.c NTB: Fix zero size or integer overflow in ntb_set_mw 2015-08-09 16:32:22 -04:00