Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1677090

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

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] spi: loopback-test: Fix kfree() NULL pointer error.
Date 2017-06-28 21:20 +0200
Message-ID <tXqFk-1sJ-15@gated-at.bofh.it> (permalink)
References <tUnNF-6PZ-55@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] spi: loopback-test: Fix kfree() NULL pointer error. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-06-20 11:40 +0200
  Re: [PATCH] spi: loopback-test: Fix kfree() NULL pointer error. Mark Brown <broonie@kernel.org> - 2017-06-28 21:20 +0200
  Applied "spi: loopback-test: Fix kfree() NULL pointer error." to the spi tree Mark Brown <broonie@kernel.org> - 2017-06-28 21:30 +0200

csiph-web