Skip to contentSkip to conversation

serial/mrst_max3110: make buffer larger

PATCH New Alan Cox 1 participant 1 message Jan 25, 2011 TTY layer and serial drivers

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 serial/mrst_max3110: make buffer larger

From: Dan Carpenter <[email protected]>

This is used to store the spi_device ->modalias so they have to be the same size. SPI_NAME_SIZE is 32.

---

 drivers/tty/serial/mrst_max3110.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/tty/serial/mrst_max3110.c +1 -1
index b62857b..37e13c3 100644
@@ -51,7 +51,7 @@
 struct uart_max3110 {
 	struct uart_port port;
 	struct spi_device *spi;
-	char name[24];
+	char name[SPI_NAME_SIZE];
 
 	wait_queue_head_t wq;
 	struct task_struct *main_thread;