Mtd: fix check return value for copy_from_user in uboot_write method [1/1]
authorxianjun.liu <xianjun.liu@amlogic.com>
Tue, 25 Jun 2019 07:31:30 +0000 (15:31 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 26 Jul 2019 05:31:00 +0000 (22:31 -0700)
commit71654339720452b08b1d2b43576f4c5e5be003fd
tree680e50647b1655a2f0aa9eac948c7ef703a883bc
parent184c4b427ce0be5b199c17e00d73afba383c74c3
Mtd: fix check return value for copy_from_user in uboot_write method [1/1]

PD#SWPL-11776

Problem:
missing return value check for copy_from_user in uboot_write method

Solution:
checking return value after call copy_from_user/copy_to_user

Verify:
AXG-S420

Change-Id: I087a341cbf0b603b2898e81773dc266d8e3debe1
Signed-off-by: xianjun.liu <xianjun.liu@amlogic.com>
drivers/amlogic/mtd/aml_dtb.c
drivers/amlogic/mtd/aml_env.c
drivers/amlogic/mtd/boot.c