Skip to contentSkip to conversation

Patch "[media] blackfin: check devm_pinctrl_get() for errors" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Jan 23, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

[media] blackfin: check devm_pinctrl_get() for errors

to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
blackfin-check-devm_pinctrl_get-for-errors.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From c9205e18b41a6ef5ad73e1c4b86a78b2ea3ccb9b Mon Sep 17 00:00:00 2001

From: Dan Carpenter <[email protected]>
Date: Thu, 14 Jul 2016 07:18:14 -0300
Subject: [media] blackfin: check devm_pinctrl_get() for errors

From: Dan Carpenter <[email protected]>

commit c9205e18b41a6ef5ad73e1c4b86a78b2ea3ccb9b upstream.

devm_pinctrl_get() can fail so we should check for that.

Fixes 0a6824bc10de ('[media] v4l2: blackfin: select proper pinctrl state in ppi_set_params if CONFIG_PINCTRL is enabled')
---
 drivers/media/platform/blackfin/ppi.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/media/platform/blackfin/ppi.c +2 -0
@@ -214,6 +214,8 @@ static int ppi_set_params(struct ppi_if
 	if (params->dlen > 24 || params->dlen <= 0)
 		return -EINVAL;
 	pctrl = devm_pinctrl_get(ppi->dev);
+	if (IS_ERR(pctrl))
+		return PTR_ERR(pctrl);
 	pstate = pinctrl_lookup_state(pctrl,
 				      pin_state[(params->dlen + 7) / 8 - 1]);
 	if (pinctrl_select_state(pctrl, pstate))

Patches currently in stable-queue which might be from [email protected] are

queue-4.4/blackfin-check-devm_pinctrl_get-for-errors.patch queue-4.4/ieee802154-atusb-do-not-use-the-stack-for-buffers-to-make-them-dma-able.patch