9
0
Fork 0
barebox/fs
Johannes Stezenbach 6815e0d054 fs: limit flash erase and protect to the partiton boundary
Passing a too large size or offset to erase could
affect flash outside the partition boundary.
Addresses for SPI flash wrap around, thus giving a
count + offset going past the end of the flash would
wrap around and erase flash at offset 0.

Add the same check for protect.

Signed-off-by: Johannes Stezenbach <js@sig21.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-06-07 19:31:33 +02:00
..
cramfs fs: get fs device using container_of 2012-02-25 14:03:56 +01:00
fat FAT: Fix error path 2012-03-18 15:03:31 +01:00
Kconfig Merge branch 'next' 2012-06-06 14:11:57 +02:00
Makefile fs: Add NFS support 2012-05-14 08:36:03 +02:00
devfs-core.c complete: add delpart complete support 2012-04-30 20:37:40 +08:00
devfs.c devfs: don't erase past the end of the partition 2012-06-07 19:31:33 +02:00
fs.c fs: limit flash erase and protect to the partiton boundary 2012-06-07 19:31:33 +02:00
nfs.c fs: Add NFS support 2012-05-14 08:36:03 +02:00
ramfs.c ramfs: rember last accessed chunk 2012-05-16 13:20:09 +02:00
tftp.c fs tftp: use resolv to resolv ip address 2012-04-15 16:26:07 +02:00