[RFC PATCH 2.6.18-rc4-mm1] hwmon: unchecked return status fixes

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

 



Hi all,

Attached is a patch for 2.6.18-rc4 as well as the complete driver
(w83627ehf.c). It tests the return value when device_create_file() is
called. I would like to add sysfs_create_group() calls with another
patch. Anyone who would like to test the patch, please do.

Sylvain, if you are running a 2.4-series kernel, take a look at
i2c-isa_return_attach_adapter.patch as well (in this thread). I do not
know if this will backport to the 2.4 kernel successfully. I have also
attached a regression test script (w83627ehf_regression.sh) which
matches this driver. There is not a way to script a test for the
changes made to correctly handle device_create_file() errors, so this
regression test is the same as previous tests.

Thanks,
David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: w83627ehf_unchecked_device_create_file.patch
Type: application/octet-stream
Size: 5584 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20060821/9c4b9641/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: w83627ehf.c
Type: application/octet-stream
Size: 43824 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20060821/9c4b9641/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: w83627ehf_regression.sh
Type: application/x-sh
Size: 16224 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20060821/9c4b9641/attachment.sh 


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

  Powered by Linux