forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/firewire/fireworks/fireworks_hwdep.c
....@@ -1,9 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * fireworks_hwdep.c - a part of driver for Fireworks based devices
34 *
45 * Copyright (c) 2013-2014 Takashi Sakamoto
5
- *
6
- * Licensed under the terms of the GNU General Public License, version 2.
76 */
87
98 /*
....@@ -35,6 +34,7 @@
3534 type = SNDRV_FIREWIRE_EVENT_EFW_RESPONSE;
3635 if (copy_to_user(buf, &type, sizeof(type)))
3736 return -EFAULT;
37
+ count += sizeof(type);
3838 remained -= sizeof(type);
3939 buf += sizeof(type);
4040