Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1111139ioo; Sun, 22 May 2022 04:10:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhrFRJCLHE1sKdL1aNfvyEz9fSMCN5tg8pmCVWYCBunn3tPwTcg4AFAQcrWAeuIgG/YkL8 X-Received: by 2002:a17:902:ed12:b0:161:9c9f:35af with SMTP id b18-20020a170902ed1200b001619c9f35afmr18287583pld.148.1653217826724; Sun, 22 May 2022 04:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653217826; cv=none; d=google.com; s=arc-20160816; b=fwASJwpJM3T6V0sOxVpjMTQgfhpewGfvESAvt//fJcbk8tXUtPsNzcTbEKuIA/+KHF /9NLqXLgXiA7cmzDEvjnt1D1rXRuHZWaJgxhsEx1s4kih8NH+JbRrNV+H69iLoANECRj iNa0hwKVPhtH6XjvzehUBDlMiin9Jrl9Emvcf5w7q8U8JCbifP5dsmGl8AoaRCbnOiWK IW4GioN1AK9jsrNbQVvu0bA0N70GjaLKmzRXlmQg/od7CLUP0UOfer3+xBPechE8dbZ2 AEGSV95sn/j4jFOIjyE94Vqv5AeSxv2kIfqY1Ft+RmDHGCRccuIkoxN71ugkcwP3qSUa JMRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:dkim-signature; bh=gAITwp43a4w30vT1uOOmJoUF5xFm7wkkasuEdQTf/Fk=; b=gy8mSEpKJUk4NKNPGlkoh9j6TxTRGSkc5PK7hQmKFUeweNaXjDRHtIhLO+bOsKKlAZ UHurkFJbAYhhDhAlV9ufqesEhhDiVsSfFUUjeeYPcCl5mmIcfrUB+srx8JcFoT1A3oXQ AEbRN2iim5vVKECVNI99Wg27AMK1EwpliV3IncKKK5v9Wvqay9BUZaTtECq16jcrU82R zjoUXuqxA+yHOZGfcXeH9YW2ElmwPr1LeB7gtVKfx2jm/E5my4NeTLNKKSHTTfZnnpqN vXJtTo2CczT5KR9PibVk5Khv7GEcKvNiM+JzYyz1ZcsPOoIcGC9DNIVq/3LPht2td4De zqjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bNkZRhnX; 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 b7-20020a170902d88700b001618b3da0a4si5708391plz.465.2022.05.22.04.10.16; Sun, 22 May 2022 04:10:26 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bNkZRhnX; 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 S1346873AbiEUV50 (ORCPT + 99 others); Sat, 21 May 2022 17:57:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237130AbiEUV5Y (ORCPT ); Sat, 21 May 2022 17:57:24 -0400 Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72B2342A24 for ; Sat, 21 May 2022 14:57:21 -0700 (PDT) Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-f17f1acffeso14042174fac.4 for ; Sat, 21 May 2022 14:57:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=gAITwp43a4w30vT1uOOmJoUF5xFm7wkkasuEdQTf/Fk=; b=bNkZRhnXoZZ5uhXo92mBOu73mygo/R5GNLxg5obG3gOyW7/ORTAmhTscXQcbfLNEQ1 QtgbRC9m0DSk/EXOho8u69FZK13Ea6S9b1Xmc2oHdMYWJ10lu4x+F5nCMLzEtSfJKJVi Dy0xuYMXQo//jUgiFURvGWJawZzN69S9XbraN9tn75SF1FB0Z7nrAEo9bkfwRpoBOD4a mDQYGWzKb5ERrU6YxR/cZvZMASYIYzjOH9loLCEzEzgEUSH+9XIDHx+o+MgPJPRhb74d EcN6hyAirMWVFhDj7s8PLXOuRuM1z7BuHO8C5lVzKCs7mWQKem6/2OayIgUeQhI69C8A Bo+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=gAITwp43a4w30vT1uOOmJoUF5xFm7wkkasuEdQTf/Fk=; b=KI2iPnUTturLMECv6cYVXOVLR4QUMg11fJMj7a8qKsNVEEISEYAvIAalzmezLSBzo0 kuESHa80opqe5pqWFvu5NO8FdQL7RQRsoP2v5J/DlMcc+NXLuqLd6Zugd8CTldhIJC9h jtK/By6OAKBjEP7+IWo7BMVzULgwz8vR7Ck6M6OIxjlFQHXPjdaxHLvSK5MAt3osaKTQ mIAo5Fbo5hJY6InZOfDkVvP6n6gY+0fQLaXdZ/1B3JH/vca3pzuKptkww0onYXJVD1ww x6Wt6xf7+ObBGdb0eVsdnZmzqXg+AtelSi1TFMMy0dxBjpMD4ZiZkIctu5246NwIgG3y hGAQ== X-Gm-Message-State: AOAM531NNiYAmFsk5qA7NmPeiNlv7m5j4NSjcsnGJgEB/eTLTcrSS6vg NmLLGVV4ZEu7l78hwYGkuFl88toPivs= X-Received: by 2002:a05:6870:5487:b0:f1:98a6:6f79 with SMTP id f7-20020a056870548700b000f198a66f79mr8996604oan.221.1653170240847; Sat, 21 May 2022 14:57:20 -0700 (PDT) Received: from ?IPV6:2603:8090:2005:39b3::100e? (2603-8090-2005-39b3-0000-0000-0000-100e.res6.spectrum.com. [2603:8090:2005:39b3::100e]) by smtp.gmail.com with ESMTPSA id m129-20020aca3f87000000b00325cda1ff99sm2617026oia.24.2022.05.21.14.57.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 21 May 2022 14:57:20 -0700 (PDT) Sender: Larry Finger Message-ID: Date: Sat, 21 May 2022 16:57:17 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v3] staging: r8188eu: add check for kzalloc Content-Language: en-US To: Pavel Skripkin , Martin Kaiser , Jiasheng Jiang Cc: dan.carpenter@oracle.com, phil@philpotter.co.uk, gregkh@linuxfoundation.org, straube.linux@gmail.com, fmdefrancesco@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <20220518075957.514603-1-jiasheng@iscas.ac.cn> <20220521155017.7jjz7prdnspm2276@viti.kaiser.cx> <8fb49b5b-106b-3346-a75d-d54e0a065587@gmail.com> From: Larry Finger In-Reply-To: <8fb49b5b-106b-3346-a75d-d54e0a065587@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 5/21/22 15:26, Pavel Skripkin wrote: > Hi Martin, > > On 5/21/22 18:50, Martin Kaiser wrote: >> >>>      for (i = 0; i < 4; i++) >>> @@ -1474,7 +1479,7 @@ s32 rtw_xmit_classifier(struct adapter *padapter, >>> struct xmit_frame *pxmitframe) >> >> >> res is still 0 here - but the caller of _rtw_init_xmit_priv compares >> this return value with _SUCCESS (1) or _FAIL (0) and interprets it as >> _FAIL. >> > > I think, it's time to make > > s/_SUCCESS/0/ > s/_FAIL/-1 > > since developers from outside of staging are confused. > The main problem will be with functions that return an int (or s32). > > Will take a look. I agree; however, this change will likely break a lot of pending patches. @GregKH: Could you apply all pending patches in preparation for this patch? If so, then Pavel could make this transformation while the list is relatively idle. Larry