From: Andi Shyti Date: Thu, 30 Jan 2014 03:06:41 +0000 (-0300) Subject: upstream: [media] cx24117: use a valid dev pointer for dev_err printout X-Git-Tag: submit/tizen/20141121.110247~1493 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ac8d430900619c8e929605f7c150dc21e7ce14e;p=platform%2Fkernel%2Flinux-3.10.git upstream: [media] cx24117: use a valid dev pointer for dev_err printout Don't use '&state->priv->i2c->dev' reference to device because state is still 'NULL'. Use '&i2c->dev' instead. This bug has been reported by scan.coverity.com Signed-off-by: Andi Shyti Signed-off-by: Michael Krufky Cc: vger@stable.kernel.org Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb-frontends/cx24117.c b/drivers/media/dvb-frontends/cx24117.c index cd8b0c6..0274a99 100644 --- a/drivers/media/dvb-frontends/cx24117.c +++ b/drivers/media/dvb-frontends/cx24117.c @@ -1176,7 +1176,7 @@ struct dvb_frontend *cx24117_attach(const struct cx24117_config *config, switch (demod) { case 0: - dev_err(&state->priv->i2c->dev, + dev_err(&i2c->dev, "%s: Error attaching frontend %d\n", KBUILD_MODNAME, demod); goto error1;