]> git.baikalelectronics.ru Git - kernel.git/commit
sparc: use memdup_user_nul in sun4m LED driver
authorGeliang Tang <geliangtang@gmail.com>
Sat, 6 May 2017 15:40:20 +0000 (23:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 May 2017 19:16:25 +0000 (12:16 -0700)
commitd3574e88c9dad56e80af659234edb7663f33338b
tree94adc10e5fff05f03d65eafc4874b96fd30f83de
parentc3fb49da933451366c245a48b88958ecf755cea7
sparc: use memdup_user_nul in sun4m LED driver

Use memdup_user_nul() helper instead of open-coding to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/led.c