Blackfin: fix length checking in kgdb_ebin2mem
authorRoel Kluin <roel.kluin@gmail.com>
Thu, 4 Jun 2009 23:57:24 +0000 (19:57 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 12 Jun 2009 10:12:07 +0000 (06:12 -0400)
commit0a990614264f04879d9608da1cfcf9a6596efe08
treee4f10199fd1ab998b479fd3395a86b55d68b874d
parent11aca0e7352b6a28193221cd2dd85f758fb71b23
Blackfin: fix length checking in kgdb_ebin2mem

The kgdb_ebin2mem() was decrementing the count variable to do parsing, but
then later still tries to use it based on its original meaning.  So leave
it untouched and use a different variable to walk the memory.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/kgdb.c