From: Takashi Iwai Date: Tue, 27 Jan 2015 15:17:26 +0000 (+0100) Subject: ALSA: line6: Clear prev_fbuf and prev_fsize properly X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~130^2~35^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2bb614bb6c7f5245521195f144272ef93d9f086;p=pandora-kernel.git ALSA: line6: Clear prev_fbuf and prev_fsize properly Clearing prev_fsize in line6_pcm_acquire() is pretty racy. This can be called at any time while the stream is being played. Rather better to clear prev_fbuf and prev_fsize at the proper place like the stream stop for capture, and just after copying the monitor / impulse data inside the spinlock. Tested-by: Chris Rorvick Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed