ratp: Test if console exists before using it
Consoles can be unregistered, this happens for example when barebox
implements the barebox serial USB gadget. Before using the console
we have to explicitly test if the pointer is still valid each time.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 325608a commit c51dfe31e7725628ba52060024a7eb7083620557
@Sascha Hauer Sascha Hauer authored on 19 May 2020
Showing 1 changed file
View
common/ratp/ratp.c