as3525: make sure we don't use a negative number of sectors
commit6394f1a24856a614be66237feeb9638e5fb989ff
authorfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Sun, 16 May 2010 10:24:31 +0000 (16 10:24 +0000)
committerfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Sun, 16 May 2010 10:24:31 +0000 (16 10:24 +0000)
tree2dcdbdb5421a1bf85156ebdb64f48390468d6c77
parent4b6dd7a0d45fc0e9a6250c3e57a01c1b3559ca0e
as3525: make sure we don't use a negative number of sectors

Better be safe than sorry, don't try to read/write outside our storage,
because we might overwrite the OF on the internal storage

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26077 a1c6a512-1295-4272-9138-f99709370657
firmware/target/arm/as3525/sd-as3525.c
firmware/target/arm/as3525/sd-as3525v2.c