Skip to content

Commit

Permalink
[PATCH] pwc bug fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Jun 13, 2005
1 parent 8d5f7b4 commit c010533
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/usb/media/pwc/pwc-if.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,6 @@ static int pwc_allocate_buffers(struct pwc_device *pdev)
#endif
;
}
if (kbuf == NULL) {
Err("Failed to allocate decompress table.\n");
return -ENOMEM;
}
pdev->decompress_data = kbuf;

/* Allocate image buffer; double buffer for mmap() */
Expand Down

0 comments on commit c010533

Please sign in to comment.