aboutsummaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorJiasheng Jiang <[email protected]>2022-11-17 15:02:36 +0800
committerHans Verkuil <[email protected]>2022-12-07 17:58:47 +0100
commit6e5e5defdb8b0186312c2f855ace175aee6daf9b (patch)
tree507f1aab0991d694b3af34431d08a07b7ccfffc8 /include/linux/overflow.h
parent6b8082238fb8bb20f67e46388123e67a5bbc558d (diff)
media: coda: Add check for kmalloc
As the kmalloc may return NULL pointer, it should be better to check the return value in order to avoid NULL poineter dereference, same as the others. Fixes: cb1d3a336371 ("[media] coda: add CODA7541 JPEG support") Signed-off-by: Jiasheng Jiang <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions