Re: [PATCH] spi: loopback-test: Fix kfree() NULL pointer error.

From: Mark Brown
Date: Wed Jun 28 2017 - 15:15:36 EST


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.

Attachment: signature.asc
Description: PGP signature