diff options
| author | Gabriele M <moto.falcon.git@gmail.com> | 2015-08-12 21:05:16 +0200 |
|---|---|---|
| committer | desaishivam26 <kane.desai@gmail.com> | 2015-12-03 11:33:13 +0100 |
| commit | 498fe68fa30fc8059fddbf8540794c29b20db3bd (patch) | |
| tree | 62a4af23d57c4f2922c418f54138fd0f6c7c50ba /net/lapb/lapb_timer.c | |
| parent | bc8df36c3206c223d0dd4a9ee4c803d7224ccf44 (diff) | |
power: qpnp-bms-mmi: Fix devm_kfree warning caused by NULL pointer
On init, chip->adjusted_fcc_temp_lut is NULL and should not be freed.
Add a NULL pointer check to fix the following warning:
<4>[ 1.940627,1] ------------[ cut here ]------------
<4>[ 1.940729,1] WARNING: at /usr/src/android/kernel/motorola/msm8226/drivers/base/devres.c:649 qpnp_bms_probe+0x18cc/0x1bb0()
<4>[ 1.940911,1] [<c010abac>] (unwind_backtrace+0x0/0xe0) from [<c0178754>] (warn_slowpath_common+0x48/0x60)
<4>[ 1.941084,1] [<c0178754>] (warn_slowpath_common+0x48/0x60) from [<c0178828>] (warn_slowpath_null+0x18/0x20)
<4>[ 1.941255,1] [<c0178828>] (warn_slowpath_null+0x18/0x20) from [<c09dcf0c>] (qpnp_bms_probe+0x18cc/0x1bb0)
<4>[ 1.941429,1] [<c09dcf0c>] (qpnp_bms_probe+0x18cc/0x1bb0) from [<c04995a4>] (spmi_drv_probe+0x10/0x14)
<4>[ 1.941533,1] [<c04995a4>] (spmi_drv_probe+0x10/0x14) from [<c04556f0>] (driver_probe_device+0xc4/0x200)
<4>[ 1.941708,1] [<c04556f0>] (driver_probe_device+0xc4/0x200) from [<c04544b0>] (bus_for_each_drv+0x74/0x88)
<4>[ 1.941881,1] [<c04544b0>] (bus_for_each_drv+0x74/0x88) from [<c045597c>] (device_attach+0x80/0xa4)
<4>[ 1.942053,1] [<c045597c>] (device_attach+0x80/0xa4) from [<c0454610>] (bus_probe_device+0x28/0x98)
<4>[ 1.942223,1] [<c0454610>] (bus_probe_device+0x28/0x98) from [<c0455208>] (deferred_probe_work_func+0x50/0x74)
<4>[ 1.942397,1] [<c0455208>] (deferred_probe_work_func+0x50/0x74) from [<c018f8dc>] (process_one_work+0x258/0x3f4)
<4>[ 1.942570,1] [<c018f8dc>] (process_one_work+0x258/0x3f4) from [<c0190578>] (worker_thread+0x19c/0x2dc)
<4>[ 1.942672,1] [<c0190578>] (worker_thread+0x19c/0x2dc) from [<c01949ec>] (kthread+0x84/0x90)
<4>[ 1.942843,1] [<c01949ec>] (kthread+0x84/0x90) from [<c01062ac>] (kernel_thread_exit+0x0/0x8)
<4>[ 1.943006,1] ---[ end trace faf4c93ea840ef87 ]---
Change-Id: Ia5f854e4516b69a07d5aaaa7114794667b8ecb2f
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions
