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

[PATCH] pwc bug fix

The pwc chainsaw session left some setups not working. There is a
sanity check on compression buffers that simply isn't right any more as
we never allocate one.

This doesn't address the email and other changes. I'll do those
tomorrow if I get time, but it is the minimal fix for the code and basic
feature set.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Alan Cox and committed by
Linus Torvalds
c0105338 8d5f7b43

-4
-4
drivers/usb/media/pwc/pwc-if.c
··· 332 332 #endif 333 333 ; 334 334 } 335 - if (kbuf == NULL) { 336 - Err("Failed to allocate decompress table.\n"); 337 - return -ENOMEM; 338 - } 339 335 pdev->decompress_data = kbuf; 340 336 341 337 /* Allocate image buffer; double buffer for mmap() */