From 12489e9cb91ea91513cb991dadd1b1b9c9e4cc3e Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 9 May 2014 14:59:16 +0300 Subject: [PATCH] applicom: dereferencing NULL on error path commit 8bab797c6e5724a43b7666ad70860712365cdb71 upstream. 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: 819a3eba4233 ('[PATCH] applicom: fix error handling') Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- Reading git-format-patch failed