This is an automated email from Gerrit.

Andreas Fritiofson ([email protected]) just uploaded a new patch set 
to Gerrit, which you can find at http://openocd.zylin.com/2039

-- gerrit

commit 55e53ab2792d90c0803ff6cf24d1086a75c27fc0
Author: Andreas Fritiofson <[email protected]>
Date:   Mon Mar 10 22:20:16 2014 +0100

    flash/kinetis: Fix bug in odd byte count padding
    
    Change-Id: Ic5cfd880f2b49e3a96c408cf868db622bfe698a1
    Signed-off-by: Andreas Fritiofson <[email protected]>

diff --git a/src/flash/nor/kinetis.c b/src/flash/nor/kinetis.c
index bc39772..dc9208c 100644
--- a/src/flash/nor/kinetis.c
+++ b/src/flash/nor/kinetis.c
@@ -731,7 +731,7 @@ static int kinetis_write(struct flash_bank *bank, uint8_t 
*buffer,
                        }
                        LOG_INFO("odd number of bytes to write (%" PRIu32 "), 
extending to %" PRIu32 " "
                                "and padding with 0xff", old_count, count);
-                       memset(buffer, 0xff, count);
+                       memset(new_buffer, 0xff, count);
                        buffer = memcpy(new_buffer, buffer, old_count);
                }
 

-- 

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to