From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:59264 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932362AbcECADh (ORCPT ); Mon, 2 May 2016 20:03:37 -0400 Subject: Patch "extcon: max77843: Use correct size for reading the interrupt register" has been added to the 4.5-stable tree To: dan.carpenter@oracle.com, cw00.choi@samsung.com, gregkh@linuxfoundation.org, jaewon02.kim@samsung.com, k.kozlowski@samsung.com Cc: , From: Date: Mon, 02 May 2016 17:03:35 -0700 Message-ID: <146223381563177@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: 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.5-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.5 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From c4924e92442d7218bd725e47fa3988c73aae84c9 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Thu, 4 Feb 2016 14:36:09 +0300 Subject: extcon: max77843: Use correct size for reading the interrupt register From: Dan Carpenter 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 Reviewed-by: Jaewon Kim Reviewed-by: Krzysztof Kozlowski [cw00.choi: Modify the patch title] Signed-off-by: Chanwoo Choi Signed-off-by: Greg Kroah-Hartman --- 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.5/misc-mic-scif-fix-wrap-around-tests.patch queue-4.5/drm-amdkfd-uninitialized-variable-in-dbgdev_wave_control_set_registers.patch queue-4.5/rtc-ds1685-passing-bogus-values-to-irq_restore.patch queue-4.5/thermal-rockchip-fix-a-impossible-condition-caused-by-the-warning.patch queue-4.5/tpm-fix-checks-for-policy-digest-existence-in-tpm2_seal_trusted.patch queue-4.5/extcon-max77843-use-correct-size-for-reading-the-interrupt-register.patch