* Patch "pinctrl: intel: merrifield: Add missed check in mrfld_config_set()" has been added to the 4.9-stable tree
@ 2017-02-04 15:45 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-02-04 15:45 UTC (permalink / raw)
To: andriy.shevchenko, gregkh, linus.walleij, mika.westerberg
Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
pinctrl: intel: merrifield: Add missed check in mrfld_config_set()
to the 4.9-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:
pinctrl-intel-merrifield-add-missed-check-in-mrfld_config_set.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From 19b26d92dfb70f56440c187a20c49102ab648b97 Mon Sep 17 00:00:00 2001
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: Tue, 24 Jan 2017 17:28:22 +0200
Subject: pinctrl: intel: merrifield: Add missed check in mrfld_config_set()
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
commit 19b26d92dfb70f56440c187a20c49102ab648b97 upstream.
Not every pin can be configured. Add missed check to prevent access
violation.
Fixes: 4e80c8f50574 ("pinctrl: intel: Add Intel Merrifield pin controller support")
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/pinctrl/intel/pinctrl-merrifield.c | 3 +++
1 file changed, 3 insertions(+)
--- a/drivers/pinctrl/intel/pinctrl-merrifield.c
+++ b/drivers/pinctrl/intel/pinctrl-merrifield.c
@@ -794,6 +794,9 @@ static int mrfld_config_set(struct pinct
unsigned int i;
int ret;
+ if (!mrfld_buf_available(mp, pin))
+ return -ENOTSUPP;
+
for (i = 0; i < nconfigs; i++) {
switch (pinconf_to_config_param(configs[i])) {
case PIN_CONFIG_BIAS_DISABLE:
Patches currently in stable-queue which might be from andriy.shevchenko@linux.intel.com are
queue-4.9/pinctrl-baytrail-debounce-register-is-one-per-community.patch
queue-4.9/pinctrl-intel-merrifield-add-missed-check-in-mrfld_config_set.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-02-04 15:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-04 15:45 Patch "pinctrl: intel: merrifield: Add missed check in mrfld_config_set()" has been added to the 4.9-stable tree gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).