diff options
author | Daniel Glöckner <dg@emlix.com> | 2013-04-24 14:02:30 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2013-04-27 11:39:18 +0200 |
commit | 4fefbc020aa3239b3fe030662e54d5a96d4b7e16 (patch) | |
tree | a542bce7c241bc1ae4a03dd28a6cefa1abdd5878 /board | |
parent | a52972d8a5c2cc19597aad60a8e892e4c0f1f350 (diff) |
colibri_t20: nand: fix compat string length
There was no space for the null byte. In our case it led to the lowest
byte of the pointer mtd used by nand_init_chip being cleared, which
made the system crash when it tried to call mtd->priv->select_chip.
Signed-off-by: Daniel Glöckner <dg@emlix.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/toradex/common/tegra2_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/toradex/common/tegra2_nand.c b/board/toradex/common/tegra2_nand.c index 1c39f655bd2..cc8e324b1fe 100644 --- a/board/toradex/common/tegra2_nand.c +++ b/board/toradex/common/tegra2_nand.c @@ -920,7 +920,7 @@ int board_nand_init(struct nand_chip *nand) struct fdt_nand *config = &info->config; struct mtd_info tmp_mtd; int tmp_manf, tmp_id, tmp_4th; - char compat[8]; + char compat[9]; int node; #ifndef CONFIG_COLIBRI_T30 |