hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/sound/isa/wavefront/wavefront_synth.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /* Copyright (C) by Paul Barton-Davis 1998-1999
23 *
34 * Some portions of this file are taken from work that is
45 * copyright (C) by Hannu Savolainen 1993-1996
5
- *
6
- * This program is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)
7
- * Version 2 (June 1991). See the "COPYING" file distributed with this software
8
- * for more info.
96 */
107
118 /*
....@@ -791,7 +788,6 @@
791788
792789 dev->patch_status[header->number] |= WF_SLOT_FILLED;
793790
794
- bptr = buf;
795791 bptr = munge_int32 (header->number, buf, 2);
796792 munge_buf ((unsigned char *)&header->hdr.p, bptr, WF_PATCH_BYTES);
797793
....@@ -1092,7 +1088,8 @@
10921088
10931089 if (dataptr < data_end) {
10941090
1095
- __get_user (sample_short, dataptr);
1091
+ if (get_user(sample_short, dataptr))
1092
+ return -EFAULT;
10961093 dataptr += skip;
10971094
10981095 if (data_is_unsigned) { /* GUS ? */