commit | aeca4e33904532a6959aadc87a1de59d1e67664c | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Jan 07 16:04:41 2020 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Feb 24 08:34:49 2020 +0100 |
tree | 58b23bdebd39f1180ec45aca275495a139fa864b | |
parent | 97cca37c9b3ffdb7629d9ad4c136e41c50ed19f3 [diff] |
cmd64x: potential buffer overflow in cmd64x_program_timings() [ Upstream commit 117fcc3053606d8db5cef8821dca15022ae578bb ] The "drive->dn" value is a u8 and it is controlled by root only, but it could be out of bounds here so let's check. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>