diff options
author | Allen Hubbe <Allen.Hubbe@emc.com> | 2015-07-13 14:07:13 +0200 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2015-08-09 22:32:22 +0200 |
commit | 8c9edf63e75f036b42afb4502deb20bbfb5004b4 (patch) | |
tree | e1a20719e91d54e26384642d8665854b44cb7ed7 /fs | |
parent | NTB: Schedule to receive on QP link up (diff) | |
download | linux-8c9edf63e75f036b42afb4502deb20bbfb5004b4.tar.xz linux-8c9edf63e75f036b42afb4502deb20bbfb5004b4.zip |
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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions