[PATCH 1/1] si4713-i2c: Fix null pointer reference in probe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Remove reference to uninitialized v4l2_subdevice pointer
in fail path of probe function.

Signed-off-by: Eduardo Valentin <eduardo.valentin@xxxxxxxxx>
---
 linux/drivers/media/radio/si4713-i2c.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/linux/drivers/media/radio/si4713-i2c.c b/linux/drivers/media/radio/si4713-i2c.c
index 116555c..e45d236 100644
--- a/linux/drivers/media/radio/si4713-i2c.c
+++ b/linux/drivers/media/radio/si4713-i2c.c
@@ -1976,7 +1976,7 @@ static int si4713_probe(struct i2c_client *client,
 
 	sdev->platform_data = client->dev.platform_data;
 	if (!sdev->platform_data) {
-		v4l2_err(&sdev->sd, "No platform data registered.\n");
+		dev_err(&client->dev, "No platform data registered.\n");
 		rval = -ENODEV;
 		goto free_sdev;
 	}
-- 
1.6.2.GIT

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux