]> git.sur5r.net Git - openocd/commit
kinetis: bugfix in kinetis_write() fallback path
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Wed, 18 Jul 2012 22:02:46 +0000 (00:02 +0200)
committerFreddie Chopin <freddie.chopin@gmail.com>
Wed, 29 Aug 2012 06:26:02 +0000 (06:26 +0000)
commit73d87c6210bcd049b738583973fefdea0e32c6fa
treecbeb133354e00fc2cbb810988e1a533a9d7977a3
parent4c3972c1df759564343aa63a424f7791a8ab9b19
kinetis: bugfix in kinetis_write() fallback path

Offset calculation into buffer was wrong and code would read outside buffer
if count was not a multiple of four.

Change-Id: Ied625b10221423d5a5f25d27ce1edd8c2c3eca8a
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/749
Reviewed-by: Peter Stuge <peter@stuge.se>
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/flash/nor/kinetis.c