[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq14lye6u8n.fsf@oracle.com>
Date: Mon, 27 Mar 2017 21:54:48 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: Boaz Harrosh <ooo@...ctrozaur.com>,
Benny Halevy <bhalevy@...marydata.com>,
"James E.J. Bottomley" <jejb@...ux.vnet.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
osd-dev@...n-osd.org, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] scsi: osd_uld: remove an unneeded NULL check
Dan Carpenter <dan.carpenter@...cle.com> writes:
> We don't call the remove() function unless probe() succeeds so "oud"
> can't be NULL here. Plus, if it were NULL, we dereference it on the
> next line so it would crash anyway.
Applied to 4.12/scsi-queue (by hand).
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists