kernel/sound/firewire/fireworks/fireworks_hwdep.c
.. .. @@ -1,9 +1,8 @@ 1 +// SPDX-License-Identifier: GPL-2.0-only1 2 /* 2 3 * fireworks_hwdep.c - a part of driver for Fireworks based devices 3 4 * 4 5 * Copyright (c) 2013-2014 Takashi Sakamoto 5 - *6 - * Licensed under the terms of the GNU General Public License, version 2.7 6 */ 8 7 9 8 /* .. .. @@ -35,6 +34,7 @@ 35 34 type = SNDRV_FIREWIRE_EVENT_EFW_RESPONSE; 36 35 if (copy_to_user(buf, &type, sizeof(type))) 37 36 return -EFAULT; 37 + count += sizeof(type);38 38 remained -= sizeof(type); 39 39 buf += sizeof(type); 40 40