diff options
author | Frank Haverkamp <haver@vnet.ibm.com> | 2007-03-14 14:17:07 +0100 |
---|---|---|
committer | Josh Boyer <jwboyer@gmail.com> | 2007-03-15 08:07:47 -0500 |
commit | 876476b7bbf158c64868d379460a7b6bce7e95e0 (patch) | |
tree | a380ad1eabfd0cc810743139707395dbf672f4e6 /ubi-utils/src/reader.c | |
parent | 12d798a29a9a376ef495f527b1785317e3ae3d37 (diff) |
MTD-Utils: fix handling of ioctl return value in nand-utils
Older kernel do not implement the MTDFILEMODE ioctl. In this case
nandwrite and nanddump should have used MEMGETOOBSEL in combination
with MEMSETOOBSEL. Unfortunately the return value of the unsucessfull
ioctl is not -ENOTTY, but -1 and errno contains ENOTTY. This change
fixes this issue. I have not tested all cornercases. Would be
good if someone could do more careful testing than I did, or maybe
reviewing is sufficient in this case.
Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
Diffstat (limited to 'ubi-utils/src/reader.c')
0 files changed, 0 insertions, 0 deletions