summaryrefslogtreecommitdiffstats
path: root/arch/um/Makefile-ppc
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2014-05-21 07:47:26 +0200
committerBrian Norris <computersforpeace@gmail.com>2014-05-28 09:05:26 +0200
commitab7f6fcec33a01279d2abeaf1c4ccdfa8a5d93ff (patch)
tree7cfeb29c8fe79ebc80e743b79b901037baf5c2bc /arch/um/Makefile-ppc
parentmtd: nand_bbt: handle error case for nand_create_badblock_pattern() (diff)
downloadlinux-ab7f6fcec33a01279d2abeaf1c4ccdfa8a5d93ff.tar.xz
linux-ab7f6fcec33a01279d2abeaf1c4ccdfa8a5d93ff.zip
mtd: nand: r852: correct write_buf loop bounds
The two loops in r852_write_buf() are designed to handle 4-byte-aligned and then 1-byte-aligned portions, respectively. However, there are two issues: (1) The first loop will only terminate if 'len' is a multiple of 4 (2) The second loop will never terminate if it runs at least once Rewrite these loops as they were probably intended. Compile tested only. Issues pointed out by Coverity Scan. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Diffstat (limited to 'arch/um/Makefile-ppc')
0 files changed, 0 insertions, 0 deletions