kernel/drivers/char/nwflash.c
.. .. @@ -1,3 +1,4 @@ 1 +// SPDX-License-Identifier: GPL-2.0-only1 2 /* 2 3 * Flash memory interface rev.5 driver for the Intel 3 4 * Flash chips used on the NetWinder. .. .. @@ -167,7 +168,7 @@ 167 168 if (count > gbFlashSize - p) 168 169 count = gbFlashSize - p; 169 170 170 - if (!access_ok(VERIFY_READ, buf, count))171 + if (!access_ok(buf, count))171 172 return -EFAULT; 172 173 173 174 /* .. .. @@ -575,7 +576,7 @@ 575 576 576 577 static struct miscdevice flash_miscdev = 577 578 { 578 - FLASH_MINOR,579 + NWFLASH_MINOR,579 580 "nwflash", 580 581 &flash_fops 581 582 };