[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YYN81hZyBZ2dU3Wu@kroah.com>
Date: Thu, 4 Nov 2021 07:25:26 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: George Kennedy <george.kennedy@...cle.com>
Cc: jejb@...ux.ibm.com, martin.petersen@...cle.com,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
dan.carpenter@...cle.com
Subject: Re: [PATCH] scsi: scsi_debug: fix return checks for kcalloc
On Wed, Nov 03, 2021 at 02:01:42PM -0500, George Kennedy wrote:
> Change return checks from kcalloc() to now check for NULL and
> ZERO_SIZE_PTR using the ZERO_OR_NULL_PTR macro or the following
> crash can occur if ZERO_SIZE_PTR indicator is returned.
That seems really broken in the api, why is kcalloc() returning
ZERO_SIZE_PTR?
Please fix that, otherwise you need to fix all callers in the kernel
tree.
thanks,
greg k-h
Powered by blists - more mailing lists