Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp183933imn; Thu, 4 Aug 2022 01:41:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR5NYHHZqK13x8pz6yZDf6z6d//aeKUfQTPzM4+Uze4gIBpiYnrawZ4rvixP7gXM49mNl2d6 X-Received: by 2002:a17:907:7f1a:b0:72e:f9c9:dfe2 with SMTP id qf26-20020a1709077f1a00b0072ef9c9dfe2mr654647ejc.84.1659602498038; Thu, 04 Aug 2022 01:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659602498; cv=none; d=google.com; s=arc-20160816; b=EsXgrcCI8bfs1d0oFBnVmzkoXxY0UJwms16A0Xwq5+ziPWGPpwh/9AKHu7NgiSf2UZ lJEEHnOdv+pfKVm5db2eW+nKUZzc14XqHb/uLZ0gQ/xqJm9yVpqjmFky3AajS02hfzDF Q0U8t3oj8KGhyEVJtCAZ8IrJ9yE3JZMUG+Uc8r/twehpebDEPHRnSZxjse3h/qntcgwj pw9+BzQIrP/9QWq0ej5STu4+mGhycjGAuNmVOv5FqPo1fgUEqn8cKMILbCsbnSBiAPdg cwuuibgxE1hdJhTGHdaRTUwstkeFpgaFxPTKiU6GC3FqZQbZBwSTBuxnMJIoDWzyIYmj eIaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=/UpHQx0w1Ro32oiPXWuSJJrytz4hWqKFi5Q1flhSAJY=; b=N3Tyx57tYFQFEL7pWn7ZUTSiGkOKDYqvsWSjp5F924aCv2dDt1CqLh7sdzGz2i/INg 6G0y153pB8rqYIF6pdSFH7ESsLMqCAdLYAPzAbSwxjk/bhDJDJ6jP91kkMXL+TdxQLts d4eyF5Fc5p8THG1D92cTpXHeNFc3E/cewwMTWbBKq4KXu8PCE5UsyDE7C+/3ql15wjDB ksVSyXgBnchUfo9rjLpJwbl+TDJIFNhWXyAqXrsKT0o5dSeXLmqhSIyZXSpv4wwEC8HO /PD3L5XCPjp+u+TgKc64tjPDvGk3FLzdyJZQoSAH+dz2gSZjPrHQ64w7N0CWYT1lIzq+ v53A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he34-20020a1709073da200b00730a23e9326si279487ejc.614.2022.08.04.01.41.12; Thu, 04 Aug 2022 01:41:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238966AbiHDIUy (ORCPT + 99 others); Thu, 4 Aug 2022 04:20:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbiHDIUx (ORCPT ); Thu, 4 Aug 2022 04:20:53 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 668FA3AB01; Thu, 4 Aug 2022 01:20:52 -0700 (PDT) Received: from mail-ed1-f53.google.com ([209.85.208.53]) by mrelayeu.kundenserver.de (mreue012 [213.165.67.97]) with ESMTPSA (Nemesis) id 1N8EdM-1nOIs61twG-014FpX; Thu, 04 Aug 2022 10:20:50 +0200 Received: by mail-ed1-f53.google.com with SMTP id x21so11612884edd.3; Thu, 04 Aug 2022 01:20:50 -0700 (PDT) X-Gm-Message-State: ACgBeo3qCmGHQGzcvgoJdXArzBVHGmnEA1nCoDC73XO80bdiUxotmdZl ig2Hzrl7zhfprhTiDujORZFeobIyrElvkwtKtho= X-Received: by 2002:a05:6402:3495:b0:43d:d76e:e9ff with SMTP id v21-20020a056402349500b0043dd76ee9ffmr867116edc.227.1659601250156; Thu, 04 Aug 2022 01:20:50 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Thu, 4 Aug 2022 10:20:34 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] char: mwave: fix return type in ioctl To: Dan Carpenter Cc: Arnd Bergmann , Greg Kroah-Hartman , Andrew Morton , Alan Cox , Linux Kernel Mailing List , kernel-janitors Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:TN+J7Wq+V2PslLkxNsf8Y78M+zZwnuWMeT/T+ot06rKABXviwbG kBkWyHZIRByjeDg5sCOfdwFIn8ceD5cFNKeQK5LCB2QM1cA+lLuLu2Oqcm7VMvz1ozFjMwF 4Y1yzoz8OpM3R002wix1DyVoX2elchLD5BXmDPLongTy1iuHdJMTmk31dSz0nYf+Ahne/VG gyNE4vEZpgUdGbxZRcjUg== X-UI-Out-Filterresults: notjunk:1;V03:K0:xgGf8izmgKk=:DJGUoyILIyL6E+UPHoxjmW LmGFYAcmUTBRxQafbHO9NxdqJ3VawqkB1tfIBCmmmPQiP5BtpIc1MnG4SeXPHC6kNVGDLWXM6 HsaGyb7Ioy8Y9Oq3tAfKdekP/kp9FfRv9mZC1JYMidIv3+1H6FSAJpYGleIVXorVTtzLswQ24 WAjrtG2PeBwcqRKYTOgb6XrV5ojW3bvvvg/8190jHEl++9eafCMArWg4eCqTSD5DgvmhTZgf+ pUQogNoqpuClvoVQu7l6aNpqfyEf2/L4fJQIkwMpYhA2flbLLekp+HlSzIvJvqfpNiFqPxhP8 4ulq36GmEapWA/hSvG5IXydIlepIc+d/Ue7sqaUltGhBSEi5lbSUohUUX+D37BlB2BjNTijc5 vGUmvLReU/8wWAfPOP0BKNnY+fSVlB5/COaC6J01PepT9YIP3LrY2RpdFiBoCLAKy9cfXyyNI xn7zmWmjcrcScwc2Ndx3U9RM9W5wzItL2Q/Sf9meGY8uxR/Rwr8US7qoOLedFB0amG8yEmIMv GQCcgW1VqzGCPp4R7mPuK++3FrbOz1BMGaggzUXcMdMTGYS2YB7WWKT5JJzk9t4mgHBHcb9Yk 9k+PpauLNBGiYdZLqTQEiehtDy5Fdk1muKoYX5D6WnEATvJ+sloXqEZOAuPMQF7dF0Vl2fVhp JHCOWk/+JHDDQwD3t2Ob1BLpswQ0aRC6p7S7XTANaJZxvXrPf5BlMYg1jbYZHhwWr1E5rgH4y 06t70wMExJnm7MTLrT/0CAmSck9ONAdt3dSUWUAOvjZNmq2snD7VvXFa8J4XwRigToT5F3EmI D1cxDnNYzHbUUxzCp5XJcGB3o+ZFRb5b4uO1SmfQRa+dUMcZbOEAKoskpiIrH07V6mji6Im0l E1PkB1FRUeZEi0XTDc2A== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 4, 2022 at 9:06 AM Dan Carpenter wrote: > > This function is supposed to return zero for success or negative error > code on failure. Unfortunately the "retval" is declared as unsigned int > and the function returns type long. That means that on 64 bit systems > it will return positive values on error. > > Fixes: 909d145f0dec ("mwave: ioctl BKL pushdown") > Signed-off-by: Dan Carpenter > --- > The Fixes tag is sort of debatable. "retval" should have always been > declared as an int. But the BKL change is when the return type for > the ioctl changed from int to long, so it's when the bug started to > affect user space. Nice catch, I wonder how many other drivers I broke in that series. Have you gone through my BKL commits from that time period to see if any others are affected? Acked-by: Arnd Bergmann