Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Markus Grabner and committed by
Greg Kroah-Hartman
c7fcf255 340362ab

+4 -1
+3
drivers/staging/line6/capture.c
··· 147 147 const int bytes_per_frame = line6pcm->properties->bytes_per_frame; 148 148 int frames = fsize / bytes_per_frame; 149 149 150 + if (runtime == 0) 151 + return; 152 + 150 153 if (line6pcm->pos_in_done + frames > runtime->buffer_size) { 151 154 /* 152 155 The transferred area goes over buffer boundary,
+1 -1
drivers/staging/line6/revision.h
··· 1 1 #ifndef DRIVER_REVISION 2 2 /* current subversion revision */ 3 - #define DRIVER_REVISION " (revision 684)" 3 + #define DRIVER_REVISION " (revision 690)" 4 4 #endif