mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 16:07:39 +00:00
Staging: line6: workaround for null pointer bug
Signed-off-by: Markus Grabner <grabner@icg.tugraz.at> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
340362abb9
commit
c7fcf25525
2 changed files with 4 additions and 1 deletions
|
@ -147,6 +147,9 @@ void line6_capture_copy(struct snd_line6_pcm *line6pcm, char *fbuf, int fsize)
|
|||
const int bytes_per_frame = line6pcm->properties->bytes_per_frame;
|
||||
int frames = fsize / bytes_per_frame;
|
||||
|
||||
if (runtime == 0)
|
||||
return;
|
||||
|
||||
if (line6pcm->pos_in_done + frames > runtime->buffer_size) {
|
||||
/*
|
||||
The transferred area goes over buffer boundary,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef DRIVER_REVISION
|
||||
/* current subversion revision */
|
||||
#define DRIVER_REVISION " (revision 684)"
|
||||
#define DRIVER_REVISION " (revision 690)"
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue