]> 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)
commitf9400fa5abe32d1712db2024d590a058c399e54c
tree4cc5ddeb9fb336871df3b188d5a65d186aa04184
parentea55e5e1df3c4390871cdf9d9550be6570cab6e8
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: dcee6b919d40 ("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