]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
hwmon: (adm1275) Free allocated memory if probe function fails
authorGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 30 Jun 2011 09:30:03 +0000 (02:30 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 1 Jul 2011 22:56:06 +0000 (15:56 -0700)
commit3b33ca41227a54a78446fb0d7a6fdb9862f563db
treede8d5bf8012abb3d01962fcc7ab6c9226183ac93
parent7f2c0662e5cfd05f12ca49109e8f787bf2d87b66
hwmon: (adm1275) Free allocated memory if probe function fails

Probe function did not free allocated memory if it failed. Fix it.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
drivers/hwmon/adm1275.c