i2c: fix kernel memory disclosure in dev interface
i2c_smbus_xfer() does not always fill an entire block, allowing kernel stack memory disclosure through the temp variable. Clear it before it's read to. Signed-off-by: NVlad Tsyrklevich <vlad@tsyrklevich.net> Signed-off-by: NWolfram Sang <wsa@the-dreams.de> Cc: stable@kernel.org
Showing
想要评论请 注册 或 登录