[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 David,

> > That's not enough, unfortunately. In case of error you must unregister
> > the driver before returning. I also think we should print some message
> > on error. Care to send an updated patch?
> 
> Updated patch attached. I have tested it on my machine and everything
> is working, but if other hwmon drivers use this, can they apply the
> patch on their machine and see if the modules fail to load?

Thanks for the update. I tested this with the it87 driver and it worked
as designed, preventing the driver to load if an error occurs.

Unfortunately you forgot to sign your patch. Can you please resend the
patch with the proper Signed-off-by line? While you're there please
also fix the indentation of the "return" line, which isn't correct.

-- 
Jean Delvare




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

  Powered by Linux