Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:54528 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751285AbdHXMOZ (ORCPT ); Thu, 24 Aug 2017 08:14:25 -0400 From: Kalle Valo To: Dan Carpenter , Greg Kroah-Hartman , Larry Finger , Ping-Ke Shih , Yan-Hsuan Chuang , Johannes Berg , Souptick Joarder , devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Two rtlwifi drivers? References: <20170824100832.lcmbwcjhzwlgozeh@mwanda> Date: Thu, 24 Aug 2017 15:14:17 +0300 In-Reply-To: <20170824100832.lcmbwcjhzwlgozeh@mwanda> (Dan Carpenter's message of "Thu, 24 Aug 2017 13:08:32 +0300") Message-ID: <87h8wxw4bq.fsf@kamboji.qca.qualcomm.com> (sfid-20170824_141429_968484_956B4F87) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: Dan Carpenter writes: > Smatch is distrustful of the "capab" value and marks it as user > controlled. I think it actually comes from the firmware? Anyway, I > looked at other drivers and they added a bounds check and it seems like > a harmless thing to have so I have added it here as well. > > Signed-off-by: Dan Carpenter > > diff --git a/drivers/staging/rtlwifi/base.c b/drivers/staging/rtlwifi/base.c > index f7f207cbaee3..a30b928d5ee1 100644 > --- a/drivers/staging/rtlwifi/base.c > +++ b/drivers/staging/rtlwifi/base.c I'm getting slightly annoyed that we now apparently have two duplicate rtlwifi drivers (with the same name!) and I'm being spammed by staging patches. Was this really a smart thing to do? And what will be the future of these two drivers? (Of course this is not directed to Dan, he is just fixing bugs found by smatch, but more like a general question.) -- Kalle Valo