]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "serial: mvebu-uart: Fix to avoid a potential NULL pointer dereference"
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 May 2021 11:56:32 +0000 (13:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 May 2021 15:30:04 +0000 (17:30 +0200)
commite1d5da69915049100df8e560e9b62b2a787f4553
tree85354d8af34928bfed83ac9e59675a08d78b9cc0
parent39fecb0a27ca97ea7a19546d3e159b6f825e91d0
Revert "serial: mvebu-uart: Fix to avoid a potential NULL pointer dereference"

This reverts commit 010e3e5936a42fe36a58a7cc6fb3b7c127a43a78.

Because of recent interactions with developers from @umn.edu, all
commits from them have been recently re-reviewed to ensure if they were
correct or not.

Upon review, this commit was found to be not be needed at all as the
change was useless because this function can only be called when
of_match_device matched on something.  So it should be reverted.

Cc: Aditya Pakki <pakki001@umn.edu>
Cc: stable <stable@vger.kernel.org>
Fixes: 010e3e5936a4 ("serial: mvebu-uart: Fix to avoid a potential NULL pointer dereference")
Acked-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20210503115736.2104747-6-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mvebu-uart.c