diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-08-21 10:11:22 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-23 00:28:10 +0300 |
commit | 6123f1fe53985645992b2ff648b3087b77b3ed16 (patch) | |
tree | ac8aa27582f93b48953bb335e0a1252bb0f1bf58 /include/linux/tracepoint-defs.h | |
parent | 56a635c0ec14950bd6a5bfb4d9d497897f64179f (diff) | |
download | linux-6123f1fe53985645992b2ff648b3087b77b3ed16.tar.xz |
misc: xilinx_sdfec: Prevent integer overflow in xsdfec_table_write()
The checking here needs to handle integer overflows because "offset" and
"len" come from the user.
Fixes: 20ec628e8007 ("misc: xilinx_sdfec: Add ability to configure LDPC")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Dragan Cvetic <dragan.cvetic@xilinx.com>
Link: https://lore.kernel.org/r/20190821071122.GD26957@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/tracepoint-defs.h')
0 files changed, 0 insertions, 0 deletions