forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/isa/sb/emu8000_patch.c
....@@ -1,22 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Patch routines for the emu8000 (AWE32/64)
34 *
45 * Copyright (C) 1999 Steve Ratcliffe
56 * Copyright (C) 1999-2000 Takashi Iwai <tiwai@suse.de>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, write to the Free Software
19
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
207 */
218
229 #include "emu8000_local.h"
....@@ -183,10 +170,10 @@
183170 }
184171
185172 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS) {
186
- if (!access_ok(VERIFY_READ, data, sp->v.size))
173
+ if (!access_ok(data, sp->v.size))
187174 return -EFAULT;
188175 } else {
189
- if (!access_ok(VERIFY_READ, data, sp->v.size * 2))
176
+ if (!access_ok(data, sp->v.size * 2))
190177 return -EFAULT;
191178 }
192179