summaryrefslogtreecommitdiffstats
path: root/firmware/target
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2009-10-07 18:46:53 +0000
committerMichael Sparmann <theseven@rockbox.org>2009-10-07 18:46:53 +0000
commit304d7175b9641d4de5575365b9064cb2699b44ac (patch)
tree2a98e3ec41ec571919934d119ae6080364d7e01c /firmware/target
parent6b6bfc08361d26f69eabf3ebb0d46cd275053cc6 (diff)
downloadrockbox-304d7175b9641d4de5575365b9064cb2699b44ac.tar.gz
rockbox-304d7175b9641d4de5575365b9064cb2699b44ac.zip
Make iPod Nano 2G FTL return -1 on write() call, if read-only, to prevent panic.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23000 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c b/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
index 56c7554640..e4abcafba8 100644
--- a/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
+++ b/firmware/target/arm/s5l8700/ipodnano2g/ftl-nano2g.c
@@ -48,7 +48,7 @@ uint32_t ftl_write(uint32_t sector, uint32_t count, const void* buffer)
(void)sector;
(void)count;
(void)buffer;
- return 1;
+ return -1;
}
uint32_t ftl_sync(void)
{