summaryrefslogtreecommitdiffstats
path: root/mm/sparse.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2019-03-18 16:18:30 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-03 06:27:36 +0200
commitd26254c4e7cac57dba44b8f3091bbda098a9bc32 (patch)
tree559adea5207a9ac4bdbf9ecd5d8d9559a143aefc /mm/sparse.c
parenta3bed8b549ec88b0cb39fb901cbd6dd3addb6566 (diff)
downloadtalos-obmc-linux-d26254c4e7cac57dba44b8f3091bbda098a9bc32.tar.gz
talos-obmc-linux-d26254c4e7cac57dba44b8f3091bbda098a9bc32.zip
usb: typec: Fix unchecked return value
commit e82adc1074a7356f1158233551df9e86b7ebfb82 upstream. Currently there is no check on platform_get_irq() return value in case it fails, hence never actually reporting any errors and causing unexpected behavior when using such value as argument for function regmap_irq_get_virq(). Fix this by adding a proper check, a message error and return *irq* in case platform_get_irq() fails. Addresses-Coverity-ID: 1443899 ("Improper use of negative value") Fixes: d2061f9cc32d ("usb: typec: add driver for Intel Whiskey Cove PMIC USB Type-C PHY") Cc: stable@vger.kernel.org Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/sparse.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud