From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E336FC433E6 for ; Sat, 6 Mar 2021 17:17:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ABFD265018 for ; Sat, 6 Mar 2021 17:17:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230346AbhCFRRG (ORCPT ); Sat, 6 Mar 2021 12:17:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:58050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229779AbhCFRQ3 (ORCPT ); Sat, 6 Mar 2021 12:16:29 -0500 Received: from archlinux (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 08C8C64FE8; Sat, 6 Mar 2021 17:16:26 +0000 (UTC) Date: Sat, 6 Mar 2021 17:16:23 +0000 From: Jonathan Cameron To: Linus Walleij Cc: Dinghao Liu , Kangjie Lu , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] iio: gyro: mpu3050: Fix error handling in mpu3050_trigger_handler Message-ID: <20210306171623.41a9e664@archlinux> In-Reply-To: References: <20210301080421.13436-1-dinghao.liu@zju.edu.cn> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org On Tue, 2 Mar 2021 16:45:10 +0100 Linus Walleij wrote: > On Mon, Mar 1, 2021 at 9:04 AM Dinghao Liu wrote: > > > There is one regmap_bulk_read() call in mpu3050_trigger_handler > > that we have caught its return value bug lack further handling. > > Check and terminate the execution flow just like the other three > > regmap_bulk_read() calls in this function. > > > > Signed-off-by: Dinghao Liu > > OK that makes sense. > Reviewed-by: Linus Walleij Applied with a fixes tag (it goes all the way back) and marked for stable. Thanks, Jonathan > > Yours, > Linus Walleij