diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2016-11-11 15:13:02 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-11-11 15:24:01 +1100 |
commit | 02a628a37982ebcc00f050d2a6a73aa6247718f2 (patch) | |
tree | b68d1ffe6e6782d8aa75c62a4a327a10a7de3f52 /libstb | |
parent | 4e4db1a8d9aa2369cefab7d70ef08dc9356ef514 (diff) | |
download | skiboot-02a628a37982ebcc00f050d2a6a73aa6247718f2.zip skiboot-02a628a37982ebcc00f050d2a6a73aa6247718f2.tar.gz skiboot-02a628a37982ebcc00f050d2a6a73aa6247718f2.tar.bz2 |
external/pflash: Perform the correct cleanup
If the -F flag is used then pflash uses a regular file as the flash.
On cleanup pflash fails to tell arch_flash_close() if it had passed a
filename to arch_flash_init() as such arch_flash_close() assumes that
it needs to close the actual flash structure and not simply a file
descriptor leading to a NULL dereference.
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libstb')
0 files changed, 0 insertions, 0 deletions