[PATCH] [MTD] MTD-Utils: fix handling of ioctl return value in nand-utils

Josh Boyer jwboyer at gmail.com
Thu Mar 15 09:10:06 EDT 2007

On 3/14/07, Frank Haverkamp <haver at vnet.ibm.com> wrote:
> 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.

This looks good.  Applied.  Thank you.


More information about the linux-mtd mailing list