aboutsummaryrefslogtreecommitdiff
path: root/crypto/echainiv.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-03-29 12:14:40 +0300
committerMartijn Coenen <maco@android.com>2018-07-17 11:14:21 +0200
commita199689541db907b2d256b48e51d8c2ed96e96ca (patch)
treeace5697df1dfad544229f076699d9910e12d9ded /crypto/echainiv.c
parentdd5682ceced60365e0c84cedbe62bc7f71f2608f (diff)
UPSTREAM: 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 <dan.carpenter@oracle.com> Acked-by: Martijn Coenen <maco@android.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 361f2ddbb0c9f9b4f336025a7bd0212cea4a34f0) Change-Id: I098d525ba63d125caa9840e6e1d5004bf70edc3c
Diffstat (limited to 'crypto/echainiv.c')
0 files changed, 0 insertions, 0 deletions