OSDN Git Service

staging: tidspbridge: fix memory corruption on long string names
authorOmar Ramirez Luna <omar.ramirez@copitl.com>
Thu, 10 Jan 2013 09:36:59 +0000 (03:36 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 00:47:13 +0000 (16:47 -0800)
commit94c947cd4ec7c886df246f87255dc925e3a0a47f
tree6fd8f06d314c63e5a3bebcb72521e12141ea6515
parent7c256647b5ef8094ca3a6f43a442d6d8aac18058
staging: tidspbridge: fix memory corruption on long string names

The value allocated doesn't match the one that is meant to be
stored, resulting in corruption of memory for longer strings
that can't be held in such space.

Fix by allocating the correct byte value for the string meant to
be stored.

Signed-off-by: Omar Ramirez Luna <omar.ramirez@copitl.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/tidspbridge/rmgr/dbdcd.c