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=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 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 EFEAEC0650F for ; Tue, 30 Jul 2019 16:43:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C664C20693 for ; Tue, 30 Jul 2019 16:43:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564504989; bh=Bhgt8Kdpcka64EAoLz5x80I0JjzdBQzRn8FJLr0MPG8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=rVL7d6HlB2VPpDJUtNTfvsCgPpo0u4O5ueYcSHq6k5+u2sybfKkhkpdXadycX5pFm c9ABTKLjpF9tE7whX40IJfqwZVwIyoMxBLMArZSjuNJqqkElbljlSvWHSO6vvKQgd4 hsMXgcYTYNgVuFyJgb5pSKNgGyZLTdBuY9uKNtmU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727246AbfG3QnI (ORCPT ); Tue, 30 Jul 2019 12:43:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:54490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbfG3QnI (ORCPT ); Tue, 30 Jul 2019 12:43:08 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 988B320693; Tue, 30 Jul 2019 16:43:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564504987; bh=Bhgt8Kdpcka64EAoLz5x80I0JjzdBQzRn8FJLr0MPG8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ODMySGlBeblAC/zzdqMy/4bUZq7KbqAx+8YEvJadvyWGDlQUpK1s5vNsUPK0RHnu6 /rahrjWk6TXDW5lyChNSyx/lbp6uVUVvEsuXph0L6yFsqQVX5lpeM7d3EV9KgRqdI8 rzrmcpjwISfQIXqwXs+Z8uF6B3yn8+BS90v89xCE= Date: Tue, 30 Jul 2019 18:43:04 +0200 From: Greg KH To: Navid Emamdoost Cc: devel@driverdev.osuosl.org, kjlu@umn.edu, linux-kernel@vger.kernel.org, John Whitmore , emamd001@umn.edu, Nishka Dasgupta , smccaman@umn.edu, Colin Ian King Subject: Re: [PATCH v2] rtl8192_init_priv_variable: null check is missing for kzalloc Message-ID: <20190730164304.GA10640@kroah.com> References: <20190725124528.GA21757@kroah.com> <20190730143102.6662-1-navid.emamdoost@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190730143102.6662-1-navid.emamdoost@gmail.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 30, 2019 at 09:30:58AM -0500, Navid Emamdoost wrote: > Allocation for priv->pFirmware may fail, so a null check is necessary. > priv->pFirmware is accessed later in rtl8192_adapter_start. I added the > check and made appropriate changes to propagate the errno to the caller. > > Update: fixed style errors The "changelog" goes below the --- line, as is described in the kernel documentation. Also, please look at other patches for this driver, use the same prefix for the subject line as those did. v3 please? thanks, greg k-h