Re: [PATCH] rtc: pcf2127: fix a kmemleak caused in pcf2127_i2c_gather_write

2018-11-07 Thread Alexandre Belloni
On 06/11/2018 16:42:19+0800, Xulin Sun wrote: > pcf2127_i2c_gather_write() allocates memory as local variable > for i2c_master_send(), after finishing the master transfer, > the allocated memory should be freed. The kmemleak is reported: > > unreferenced object 0x80231e7dba80 (size 64): >

Re: [PATCH] rtc: pcf2127: fix a kmemleak caused in pcf2127_i2c_gather_write

2018-11-07 Thread Alexandre Belloni
On 06/11/2018 16:42:19+0800, Xulin Sun wrote: > pcf2127_i2c_gather_write() allocates memory as local variable > for i2c_master_send(), after finishing the master transfer, > the allocated memory should be freed. The kmemleak is reported: > > unreferenced object 0x80231e7dba80 (size 64): >

[PATCH] rtc: pcf2127: fix a kmemleak caused in pcf2127_i2c_gather_write

2018-11-06 Thread Xulin Sun
pcf2127_i2c_gather_write() allocates memory as local variable for i2c_master_send(), after finishing the master transfer, the allocated memory should be freed. The kmemleak is reported: unreferenced object 0x80231e7dba80 (size 64): comm "hwclock", pid 27762, jiffies 4296880075 (age

[PATCH] rtc: pcf2127: fix a kmemleak caused in pcf2127_i2c_gather_write

2018-11-06 Thread Xulin Sun
pcf2127_i2c_gather_write() allocates memory as local variable for i2c_master_send(), after finishing the master transfer, the allocated memory should be freed. The kmemleak is reported: unreferenced object 0x80231e7dba80 (size 64): comm "hwclock", pid 27762, jiffies 4296880075 (age