Skip to content

Commit

Permalink
[media] cx24117: use a valid dev pointer for dev_err printout
Browse files Browse the repository at this point in the history
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 <andi@etezian.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Cc: vger@stable.kernel.org
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
  • Loading branch information
Andi Shyti authored and Mauro Carvalho Chehab committed Feb 4, 2014
1 parent 62fd0d3 commit a33dd51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/cx24117.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a33dd51

Please sign in to comment.