Re: [PATCH] hwmon: (tmp103) Fix resource leak bug in tmp103 temperature sensor driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 22, 2014 at 10:31:39AM -0700, Sundar J Dev wrote:
> From: sundarjdev <sdev@xxxxxxxxxxxx>
> 
> tmp103 temperature sensor driver registers with the hwmon framework by calling
> hwmon_device_register_with_groups but does not have a .remove method to call
> hwmon_device_unregister to unregister from the framework when the device is no
> longer needed. Fix this by calling devm_hwmon_device_register_with_groups.
> 
> Signed-off-by: Sundar J Dev <sundarjayakumardev@xxxxxxxxx>

Good catch. Applied.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux