From: Takashi Sakamoto Date: Fri, 22 May 2015 14:21:14 +0000 (+0900) Subject: ALSA: firewire-lib: use protocol error when detecting wrong value in CIP header X-Git-Tag: omap-for-v4.3/legacy-v2-signed~142^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a900705491e6f377966711aa95df753b5ae16dd3;p=pandora-kernel.git ALSA: firewire-lib: use protocol error when detecting wrong value in CIP header When detecting zero in 'dbs' field of CIP header, this packet streaming should be aborted because of avoiding division-by-zero. This is an error in an aspect of IEC 61883-1, thus protocol error. This commit use EPROTO instead of EIO. Actually, the returned value is not used for userspace and this commit has no effect. Signed-off-by: Takashi Sakamoto Acked-by: Clemens Ladisch Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed