aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-region.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2018-03-29 09:14:40 +0000
committerGreg Kroah-Hartman <[email protected]>2018-04-23 10:14:37 +0000
commit361f2ddbb0c9f9b4f336025a7bd0212cea4a34f0 (patch)
tree148d33131fd6ce99220d633e5d0a7a6941d0ac6f /drivers/fpga/fpga-region.c
parentLinux 4.17-rc2 (diff)
downloadkernel-361f2ddbb0c9f9b4f336025a7bd0212cea4a34f0.tar.gz
kernel-361f2ddbb0c9f9b4f336025a7bd0212cea4a34f0.zip
ANDROID: binder: re-order some conditions
It doesn't make any difference to runtime but I've switched these two checks to make my static checker happy. The problem is that "buffer->data_size" is user controlled and if it's less than "sizeo(*hdr)" then that means "offset" can be more than "buffer->data_size". It's just cleaner to check it in the other order. Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Martijn Coenen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions