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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no 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 D3BE4C43140 for ; Fri, 6 Sep 2019 14:12:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AE32220842 for ; Fri, 6 Sep 2019 14:12:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390355AbfIFOMo convert rfc822-to-8bit (ORCPT ); Fri, 6 Sep 2019 10:12:44 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:56083 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731109AbfIFOMo (ORCPT ); Fri, 6 Sep 2019 10:12:44 -0400 Received: from marcel-macbook.fritz.box (p4FEFC197.dip0.t-ipconnect.de [79.239.193.151]) by mail.holtmann.org (Postfix) with ESMTPSA id C05D4CECE0; Fri, 6 Sep 2019 16:21:29 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH] Bluetooth: hidp: Fix error checks in hidp_get/set_raw_report From: Marcel Holtmann In-Reply-To: <20190906140744.GC14147@kadam> Date: Fri, 6 Sep 2019 16:12:41 +0200 Cc: Dan Elkouby , Johan Hedberg , "David S. Miller" , Fabian Henneke , Brian Norris , Al Viro , Andrea Parri , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <48E8A989-AE89-4F59-84F4-075911F4FC75@holtmann.org> References: <20190906094158.8854-1-streetwalkermc@gmail.com> <440C3662-1870-44D8-B4E3-C290CE154F1E@holtmann.org> <20190906140744.GC14147@kadam> To: Dan Carpenter X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Dan, >>> Commit 48d9cc9d85dd ("Bluetooth: hidp: Let hidp_send_message return >>> number of queued bytes") changed hidp_send_message to return non-zero >>> values on success, which some other bits did not expect. This caused >>> spurious errors to be propagated through the stack, breaking some (all?) >>> drivers, such as hid-sony for the Dualshock 4 in Bluetooth mode. >>> >>> Signed-off-by: Dan Elkouby >>> --- >>> net/bluetooth/hidp/core.c | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> patch has been applied to bluetooth-next tree. >> > > The v2 added an additional fix and used the Fixes tag. Could you apply > that instead? see my reply to Jiri. I replied to the wrong patch, but actually applied to the updated one. Regards Marcel