Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC9FF2CA0 for ; Tue, 7 Dec 2021 10:14:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 172AFC341C6; Tue, 7 Dec 2021 10:14:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1638872048; bh=Z8xush+cX8bTg2aCb5eefwuAA4McOR4w4Faqf8Lgiig=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Nif0DAAJw/awo+c5HYkVrfiwK9YLJarN10nfQ2IePFO4B8njicClTVoYtUKhrxCah M0KCrba5Dok0oQDdaRXtvJUoxkX4y2uqx+hzZBsjreHnSagFftm/3VkNUeN0KLTUZc t4NCxbY7o1my1XiJwoYSgdKHbi1HmURpX1FCG2UA= Date: Tue, 7 Dec 2021 11:14:06 +0100 From: Greg KH To: Michael Straube Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: r8188eu: convert type of HalData in struct adapter Message-ID: References: <20211206092258.3765-1-straube.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211206092258.3765-1-straube.linux@gmail.com> On Mon, Dec 06, 2021 at 10:22:58AM +0100, Michael Straube wrote: > adapter->HalData is used in the GET_HAL_DATA macro all across the > driver code but nobody checks if its allocation in > rtl188eu_alloc_haldata() was successful or not. > > To avoid errors when the allocation fails convert the type of field > HalData from void pointer to struct hal_data_8188eu. Remove > GET_HAL_DATA, rtl8188eu_alloc_haldata(), rtl8188e_free_hal_data(). > > Signed-off-by: Michael Straube > --- > Tested on x86_64 with InterTech DMG-02. This doesn't apply to my tree anymore, due to the other changes that were submitted for this driver. Can you rebase and resend please? thanks, greg k-h