]> git.baikalelectronics.ru Git - kernel.git/commit
memory: ti-aemif: fix a potential NULL-pointer dereference
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 6 Sep 2018 12:12:19 +0000 (14:12 +0200)
committerOlof Johansson <olof@lixom.net>
Thu, 6 Sep 2018 17:04:07 +0000 (10:04 -0700)
commit77487ef7861bb3523deea0f3317c0f3a26c76587
tree4cc5ddeb9fb336871df3b188d5a65d186aa04184
parent73d2f487126be58d7d15300be1efa58abdd7d59e
memory: ti-aemif: fix a potential NULL-pointer dereference

Platform data pointer may be NULL. We check it everywhere but in one
place. Fix it.

Fixes: b6d5681ac40a ("memory: aemif: add support for board files")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: stable@vger.kernel.org
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/memory/ti-aemif.c