mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* PROBLEM: bug at ./drivers/media/video/hdpvr/hdpvr-core.c
@ 2009-07-03 10:53 iceberg
  0 siblings, 0 replies; only message in thread
From: iceberg @ 2009-07-03 10:53 UTC (permalink / raw)
  To: linux-kernel

	KERNEL_V	ERSION: 2.6.30	
	SUBJECT:  in function device_authorization mutex is not released on error 
path.
	DESCRIBE:
	In ./drivers/media/video/hdpvr/hdpvr-core.c in function device_authorization: 
	If after mutex lock (line 4) usb_control_msg returns ret!=46 we go to label 
error. In this case before exit from function mutex must be 	unlocked.

01) static int device_authorization(struct hdpvr_device *dev)
02) {
03) ............
04)         mutex_lock(&dev->usbc_mutex);                                                    
05)        ret = usb_control_msg(dev->udev,
06)                               usb_rcvctrlpipe(dev->udev, 0),
07)                              rcv_request, 0x80 | request_type,
08)                              0x0400, 0x0003,
09)                              dev->usbc_buf, 46,10000);
10)	        if (ret != 46) {
11)              v4l2_err(&dev->v4l2_dev,
12)                         "unexpected answer of status request, len %d\n", 
ret);
13)                goto error;
14)        }
15) .................
16) error:
17)
18)        return retval;
19) }
                

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-03 11:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-03 10:53 PROBLEM: bug at ./drivers/media/video/hdpvr/hdpvr-core.c iceberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®