[Possible Bug] ddbridge: Do not release the acquired lock if dvb_attach fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Source file correspondence on the master branch:
https://github.com/torvalds/linux/blob/master/drivers/media/pci/ddbridge/ddbridge-core.c#L595

Summary:
The lock acquired on (port->i2c_gate_lock) is never released if
function (tuner_attach_tda18271) returns on line 605.

Details:
Function tuner_attach_tda18271 (line 595) acquires a lock on
port->i2c_gate_lock via the call to the function pointer
(input->fe->ops.i2c_gate_ctrl(input->fe, 1)) (line 601) which calls
function (drxk_gate_ctrl). However, when the call to function
(dvb_attach) on line 602 fails (returns NULL), the lock on
(port->i2c_gate_lock) is never released.

Thanks,
~Ahmed
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux