mailbox: Off by one in mbox_test_message_read()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 22 Oct 2015 19:51:27 +0000 (22:51 +0300)
committerJassi Brar <jaswinder.singh@linaro.org>
Tue, 27 Oct 2015 15:57:25 +0000 (21:27 +0530)
commitc3ac54a6f554475b034f87d471417bf0afcf3a42
tree779c174f3e3a6d9430f6ad972703c8cf39103b63
parent8e3c5952144f045a0c81bf674d3f5e1d9aafceb7
mailbox: Off by one in mbox_test_message_read()

We need to leave space for the NUL char.

Fixes: 8ea4484d0c2b ('mailbox: Add generic mechanism for testing Mailbox Controllers')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
drivers/mailbox/mailbox-test.c