]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: mailbox-test: Use more consistent format for calling copy_from_user()
authorLee Jones <lee.jones@linaro.org>
Wed, 23 Mar 2016 14:43:41 +0000 (14:43 +0000)
committerJassi Brar <jaswinder.singh@linaro.org>
Tue, 12 Apr 2016 07:58:20 +0000 (13:28 +0530)
commit17f5f28ffa6e81461a569290ae802a9b05a89072
treed13894a7a30fc57b2681661d980845ab20b08e31
parenta61b37ead51488e321fe559a4edd0325c6d4c937
mailbox: mailbox-test: Use more consistent format for calling copy_from_user()

While we're at it, ensure copy-to location is NULL'ed in the error path.

Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mailbox-test.c