summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/pinctrl-single.c
diff options
context:
space:
mode:
authorCosmin Tanislav <cosmin.tanislav@analog.com>2022-10-14 15:37:22 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-10-17 08:51:26 +0100
commit4132f19173211856d35180958d2754f5c56d520a (patch)
tree44e35e3a676e72f5cb40eee2c86ed5d93e924497 /drivers/pinctrl/pinctrl-single.c
parent72b2aa38191bcba28389b0e20bf6b4f15017ff2b (diff)
downloadlinux-4132f19173211856d35180958d2754f5c56d520a.tar.gz
iio: temperature: ltc2983: allocate iio channels once
Currently, every time the device wakes up from sleep, the iio_chan array is reallocated, leaking the previous one until the device is removed (basically never). Move the allocation to the probe function to avoid this. Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com> Fixes: f110f3188e563 ("iio: temperature: Add support for LTC2983") Cc: <Stable@vger.kernel.org> Link: https://lore.kernel.org/r/20221014123724.1401011-2-demonsingur@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/pinctrl/pinctrl-single.c')
0 files changed, 0 insertions, 0 deletions