]> git.baikalelectronics.ru Git - kernel.git/commit
lib/decompress_unlzma: Do a NULL check for pointer
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 9 Sep 2015 22:39:15 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Sep 2015 20:29:01 +0000 (13:29 -0700)
commitcc5f56eb62dd1696d0e95e5c8ff81ceb9ed4b64f
tree6f1d4774be452de6bf37e3c88c30c054d80bff68
parentb91418cccada01b9504fa4e6cb3281d58b7118ab
lib/decompress_unlzma: Do a NULL check for pointer

Compare pointer-typed values to NULL rather than 0.

The semantic patch that makes this change is available
in scripts/coccinelle/null/badzero.cocci.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/decompress_unlzma.c