]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
hwmon: (iio_hwmon) Fix null pointer dereference
authorAxel Lin <axel.lin@ingics.com>
Mon, 13 May 2013 13:37:26 +0000 (21:37 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 13 May 2013 13:43:14 +0000 (06:43 -0700)
commit159c8cddd9259e9379f37f0a69ddcbb01c4e8b77
treea1cb16d4e7d1f0e5acc8e6e8e7d7aca48e957068
parent169c05cd54473ba4cc37bf4d22e7631395d14f68
hwmon: (iio_hwmon) Fix null pointer dereference

This patch fixes the null pointer dereference in goto error_release_channels
path when allocate memory for st fails.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/iio_hwmon.c