]> git.baikalelectronics.ru Git - kernel.git/commit
pm8001: fix update_flash
authorTomas Henzl <thenzl@redhat.com>
Mon, 7 Jul 2014 15:19:59 +0000 (17:19 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:17:05 +0000 (17:17 -0400)
commit5a2b72e01a8bc6b257143b12f8b00f7a34d078a2
tree50148ca973da063718f33e5226ee08c5dc770c35
parent789ee310a0fdf058988ceac8f739f1a3c653b7a5
pm8001: fix update_flash

The driver checks the return valu, but after he tries to wait_for_completion
which might never happen.  Also the ioctl buffer is freed at the end of the
function, so the first removal is not needed.

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