diff options
| author | Yu Kuai <[email protected]> | 2021-05-21 20:06:17 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-05-27 14:45:54 +0200 |
| commit | 37188559c610f1b7eec83c8e448936c361c578de (patch) | |
| tree | a4266dbcf23c222f740e0f1d4719a2434858413e /tools/perf/scripts/python | |
| parent | 7af5662826f7b1639490c999e6bac14ea6a79a7c (diff) | |
char: pcmcia: error out if 'num_bytes_read' is greater than 4 in set_protocol()
Theoretically, it will cause index out of bounds error if
'num_bytes_read' is greater than 4. As we expect it(and was tested)
never to be greater than 4, error out if it happens.
Fixes: c1986ee9bea3 ("[PATCH] New Omnikey Cardman 4000 driver")
Signed-off-by: Yu Kuai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions