[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170628191452.vjylivjghzzpk3g7@sirena.org.uk>
Date: Wed, 28 Jun 2017 20:14:52 +0100
From: Mark Brown <broonie@...nel.org>
To: Arvind Yadav <arvind.yadav.cs@...il.com>
Cc: linux-spi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] spi: loopback-test: Fix kfree() NULL pointer error.
On Tue, Jun 20, 2017 at 03:00:53PM +0530, Arvind Yadav wrote:
> Here, rx/tx allocation can fail. So avoid kvfree call
> with NULL pointer.
It's not an error to free NULL, the APIs will just ignore the value.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists