]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pm8001: fix pm8001_store_update_fw
authorTomas Henzl <thenzl@redhat.com>
Wed, 30 Jul 2014 13:12:22 +0000 (18:42 +0530)
committerChristoph Hellwig <hch@lst.de>
Fri, 1 Aug 2014 12:16:40 +0000 (08:16 -0400)
commit6f8f31c7a890283bea85c7aac45f089b5766472d
tree6b979d0b2ac3faa855d6ccab16df3f8982ca1614
parent5bd355ee3b0191c6846918b049b3940182bec1cb
pm8001: fix pm8001_store_update_fw

The current implementation may mix the negative value returned from
pm8001_set_nvmd with count. -(-ENOMEM) could be interpreted as bytes
programmed, this patch fixes it.

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