firewire: nosy: do not ignore errors in ioremap_nocache()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 24 Sep 2016 21:19:05 +0000 (00:19 +0300)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 9 Oct 2016 09:38:11 +0000 (11:38 +0200)
commit6449e31ddebdce68508cfaf0915d31aad3835f4f
treeb9f8d39b4b7039f962c56aa59467beae957a8de6
parentc8d2bc9bc39ebea8437fd974fdbc21847bb897a3
firewire: nosy: do not ignore errors in ioremap_nocache()

There is no check if ioremap_nocache() returns a valid pointer.
Potentially it can lead to null pointer dereference.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> (renamed goto labels)
drivers/firewire/nosy.c