]> git.baikalelectronics.ru Git - kernel.git/commit
applicom: dereferencing NULL on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 9 May 2014 11:59:16 +0000 (14:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 May 2014 00:43:12 +0000 (17:43 -0700)
commit0a4c4240c1d6a4155d41c71c4a3ca3dc3dc4cb90
treeffee514d021ca9dc1e35d75303fb00dc6dfe23e9
parentce51985c7d57fc56914f459c8549961168ebee25
applicom: dereferencing NULL on error path

This is a static checker fix.  The "dev" variable is always NULL after
the while statement so we would be dereferencing a NULL pointer here.

Fixes: f5ffdb19e362 ('[PATCH] applicom: fix error handling')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/applicom.c