diff options
| author | Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> | 2018-06-21 17:22:50 +0200 |
|---|---|---|
| committer | Ajay Agarwal <ajaya@codeaurora.org> | 2019-01-09 10:17:00 +0530 |
| commit | 2d4d3f270bd1cf17d13bd4e0ae50e6a8e4f44126 (patch) | |
| tree | 303266f07d61cfe865e09d193a9d37de760f8697 /lib/pm-notifier-error-inject.c | |
| parent | 5e79fd6f7632e21af4f6703bce7aca8d73fb1888 (diff) | |
usb: gadget: u_audio: remove cached period bytes value
Substream period size potentially can be changed in runtime, however
this is not accounted in the data copying routine, the change replaces
the cached value with an actual value from substream runtime.
As a side effect the change also removes a potential division by zero
in u_audio_iso_complete() function, if there is a race with
uac_pcm_hw_free(), which sets prm->period_size to 0.
Change-Id: Id9e5dc114d61976582a96b1ba1758078057dcb89
Fixes: 132fcb460839 ("usb: gadget: Add Audio Class 2.0 Driver")
Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Git-commit: 773e53d50e227b0c03d0bb434c1636f6c49c75b2
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
