diff options
| author | Stefan Roese <sr@denx.de> | 2010-05-17 10:01:05 +0200 | 
|---|---|---|
| committer | Stefan Roese <sr@denx.de> | 2010-05-19 10:57:24 +0200 | 
| commit | bdc5f06789c5a0c3a9a2c0eb33ec4d177dbdaa22 (patch) | |
| tree | 13fd94baaf168b9858bba483a04a0791e468c82b /include/ubi_uboot.h | |
| parent | 1b1f9a9d00447d9eab32ae5633f60a106196b75f (diff) | |
| download | olio-uboot-2014.01-bdc5f06789c5a0c3a9a2c0eb33ec4d177dbdaa22.tar.xz olio-uboot-2014.01-bdc5f06789c5a0c3a9a2c0eb33ec4d177dbdaa22.zip | |
UBI: Fix problem in UBI/Linux "compatibility layer"
"down_write_trylock" needs to return 1 instead of 0 for success.
Otherwise copying a block with a read error (e.g. bit-flip on read)
won't work correctly.
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/ubi_uboot.h')
| -rw-r--r-- | include/ubi_uboot.h | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/include/ubi_uboot.h b/include/ubi_uboot.h index 60f6a5fb4..d2c90a6b4 100644 --- a/include/ubi_uboot.h +++ b/include/ubi_uboot.h @@ -123,7 +123,7 @@ typedef int	wait_queue_head_t;  #define init_rwsem(...)			do { } while (0)  #define down_read(...)			do { } while (0)  #define down_write(...)			do { } while (0) -#define down_write_trylock(...)		0 +#define down_write_trylock(...)		1  #define up_read(...)			do { } while (0)  #define up_write(...)			do { } while (0) |