]> git.baikalelectronics.ru Git - kernel.git/commit
pm80xx : Fix missing NULL pointer checks and memory leaks
authorSuresh Thiagarajan <Suresh.Thiagarajan@pmcs.com>
Fri, 9 May 2014 06:01:01 +0000 (11:31 +0530)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 17:12:26 +0000 (19:12 +0200)
commitad1b38e14cdbd5863a95f2ba0f75233c518270d7
tree570cdc1dfce6bb340bab051b5cb92a61ce7fddaa
parentad962617f1fd95cc16b55e20d378d26bae8c9d3e
pm80xx : Fix missing NULL pointer checks and memory leaks

Checking return value for the memory allocattion and freeing it
while exiting the function

Signed-off-by: Viswas G <Viswas.G@pmcs.com>
Signed-off-by: Suresh Thiagarajan <Suresh.Thiagarajan@pmcs.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Acked-by: Jack Wang <xjtuwjp@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/pm8001/pm8001_ctl.c