Details
[Home]
Issue of the Implementation # L0058
Brief
iio/adjd_s311: Fix potential memory leak in adjd_s311_update_scan_mode()
Detailed Description
Do not leak memory by updating pointer with potentially NULL realloc return value. There is no need to preserve data in the buffer, so replace krealloc() by kfree()-kmalloc() pair.
Component
linux-kernel 3.5
Accepted
https://lkml.org/lkml/2012/8/8/153
commit
Status
Fixed in kernel 3.6-rc2
[Home]
»