All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch "extcon: max77843: Use correct size for reading the interrupt register" has been added to the 4.4-stable tree
@ 2016-05-03  0:03 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2016-05-03  0:03 UTC (permalink / raw)
  To: dan.carpenter, cw00.choi, gregkh, jaewon02.kim, k.kozlowski
  Cc: stable, stable-commits


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

    extcon: max77843: Use correct size for reading the interrupt register

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:
     extcon-max77843-use-correct-size-for-reading-the-interrupt-register.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 <stable@vger.kernel.org> know about it.


>From c4924e92442d7218bd725e47fa3988c73aae84c9 Mon Sep 17 00:00:00 2001
From: Dan Carpenter <dan.carpenter@oracle.com>
Date: Thu, 4 Feb 2016 14:36:09 +0300
Subject: extcon: max77843: Use correct size for reading the interrupt register

From: Dan Carpenter <dan.carpenter@oracle.com>

commit c4924e92442d7218bd725e47fa3988c73aae84c9 upstream.

The info->status[] array has 3 elements.  We are using size
MAX77843_MUIC_IRQ_NUM (16) instead of MAX77843_MUIC_STATUS_NUM (3) as
intended.

Fixes: 135d9f7d135a ('extcon: max77843: Clear IRQ bits state before request IRQ')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jaewon Kim <jaewon02.kim@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
[cw00.choi: Modify the patch title]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/extcon/extcon-max77843.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/extcon/extcon-max77843.c
+++ b/drivers/extcon/extcon-max77843.c
@@ -803,7 +803,7 @@ static int max77843_muic_probe(struct pl
 	/* Clear IRQ bits before request IRQs */
 	ret = regmap_bulk_read(max77843->regmap_muic,
 			MAX77843_MUIC_REG_INT1, info->status,
-			MAX77843_MUIC_IRQ_NUM);
+			MAX77843_MUIC_STATUS_NUM);
 	if (ret) {
 		dev_err(&pdev->dev, "Failed to Clear IRQ bits\n");
 		goto err_muic_irq;


Patches currently in stable-queue which might be from dan.carpenter@oracle.com are

queue-4.4/misc-mic-scif-fix-wrap-around-tests.patch
queue-4.4/drm-amdkfd-uninitialized-variable-in-dbgdev_wave_control_set_registers.patch
queue-4.4/rtc-ds1685-passing-bogus-values-to-irq_restore.patch
queue-4.4/thermal-rockchip-fix-a-impossible-condition-caused-by-the-warning.patch
queue-4.4/extcon-max77843-use-correct-size-for-reading-the-interrupt-register.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-03  0:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-03  0:03 Patch "extcon: max77843: Use correct size for reading the interrupt register" has been added to the 4.4-stable tree gregkh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.