Files
linux/drivers
Yingjoe Chen 8bf2a24467 i2c: dev: fix potential memory leak in i2cdev_ioctl_rdwr
[ Upstream commit a0692f0eef ]

If I2C_M_RECV_LEN check failed, msgs[i].buf allocated by memdup_user
will not be freed. Pump index up so it will be freed.

Fixes: 838bfa6049 ("i2c-dev: Add support for I2C_M_RECV_LEN")
Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-06-22 08:16:17 +02:00
..
2019-05-31 06:47:34 -07:00
2019-06-22 08:16:16 +02:00
2018-12-21 14:13:14 +01:00
2019-05-14 19:18:42 +02:00
2019-06-22 08:16:17 +02:00
2019-06-19 08:20:59 +02:00
2018-12-21 14:13:13 +01:00
2018-11-13 11:15:11 -08:00
2018-10-03 17:00:46 -07:00
2019-04-27 09:35:34 +02:00
2019-05-31 06:47:21 -07:00