aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2017-11-22 17:52:24 +0000
committerWolfram Sang <[email protected]>2017-11-27 18:14:29 +0000
commit66a7c84d677e8e4a5a2ef4afdb9bd52e1399a866 (patch)
tree2d15545273cc43033c0faeb353a09ffd30a7c7d5 /drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c
parenti2c: i801: Fix Failed to allocate irq -2147483648 error (diff)
downloadkernel-66a7c84d677e8e4a5a2ef4afdb9bd52e1399a866.tar.gz
kernel-66a7c84d677e8e4a5a2ef4afdb9bd52e1399a866.zip
i2c: i2c-boardinfo: fix memory leaks on devinfo
Currently when an error occurs devinfo is still allocated but is unused when the error exit paths break out of the for-loop. Fix this by kfree'ing devinfo to avoid the leak. Detected by CoverityScan, CID#1416590 ("Resource Leak") Fixes: 4124c4eba402 ("i2c: allow attaching IRQ resources to i2c_board_info") Fixes: 0daaf99d8424 ("i2c: copy device properties when using i2c_register_board_info()") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c')
0 files changed, 0 insertions, 0 deletions