forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/mips/sibyte/common/sb_tbprof.c
....@@ -1,17 +1,5 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
2
- * This program is free software; you can redistribute it and/or
3
- * modify it under the terms of the GNU General Public License
4
- * as published by the Free Software Foundation; either version 2
5
- * of the License, or (at your option) any later version.
6
- *
7
- * This program is distributed in the hope that it will be useful,
8
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- * GNU General Public License for more details.
11
- *
12
- * You should have received a copy of the GNU General Public License
13
- * along with this program; if not, write to the Free Software
14
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
153 *
164 * Copyright (C) 2001, 2002, 2003 Broadcom Corporation
175 * Copyright (C) 2007 Ralf Baechle <ralf@linux-mips.org>
....@@ -458,7 +446,7 @@
458446 char *dest = buf;
459447 long cur_off = *offp;
460448
461
- if (!access_ok(VERIFY_WRITE, buf, size))
449
+ if (!access_ok(buf, size))
462450 return -EFAULT;
463451
464452 mutex_lock(&sbp.lock);