All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: greybus: add logging statement when kfifo_alloc fails
@ 2019-07-10 12:20 ` Keyur Patel
  0 siblings, 0 replies; 8+ messages in thread
From: Keyur Patel @ 2019-07-10 12:20 UTC (permalink / raw)
  Cc: iamkeyur96, David Lin, Johan Hovold, Alex Elder,
	Greg Kroah-Hartman, greybus-dev, devel, linux-kernel

Added missing logging statement when kfifo_alloc fails, to improve
debugging.

Signed-off-by: Keyur Patel <iamkeyur96@gmail.com>
---
 drivers/staging/greybus/uart.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/uart.c b/drivers/staging/greybus/uart.c
index b3bffe91ae99..86a395ae177d 100644
--- a/drivers/staging/greybus/uart.c
+++ b/drivers/staging/greybus/uart.c
@@ -856,8 +856,10 @@ static int gb_uart_probe(struct gbphy_device *gbphy_dev,
 
 	retval = kfifo_alloc(&gb_tty->write_fifo, GB_UART_WRITE_FIFO_SIZE,
 			     GFP_KERNEL);
-	if (retval)
+	if (retval) {
+		pr_err("kfifo_alloc failed\n");
 		goto exit_buf_free;
+	}
 
 	gb_tty->credits = GB_UART_FIRMWARE_CREDITS;
 	init_completion(&gb_tty->credits_complete);
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-07-11  7:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-10 12:20 [PATCH] staging: greybus: add logging statement when kfifo_alloc fails Keyur Patel
2019-07-10 12:20 ` Keyur Patel
2019-07-10 16:35 ` Greg Kroah-Hartman
2019-07-10 16:35   ` Greg Kroah-Hartman
2019-07-10 14:24   ` Keyur Patel
2019-07-10 14:24     ` Keyur Patel
2019-07-11  7:00     ` Greg Kroah-Hartman
2019-07-11  7:00       ` Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.