Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 970e85f8 authored by Sachin Kamat's avatar Sachin Kamat Committed by Mauro Carvalho Chehab
Browse files

[media] s5p-tv: Fix potential NULL pointer dereference error



When mdev is NULL, the error print statement will try to dereference
the NULL pointer.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Acked-by: default avatarTomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 94c15b5e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -384,7 +384,7 @@ static int __devinit mxr_probe(struct platform_device *pdev)

	mdev = kzalloc(sizeof *mdev, GFP_KERNEL);
	if (!mdev) {
		mxr_err(mdev, "not enough memory.\n");
		dev_err(dev, "not enough memory.\n");
		ret = -ENOMEM;
		goto fail;
	}