mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6: ieee1394: sbp2: remove a workaround for Momobay FX-3A firewire: sbp2: remove a workaround for Momobay FX-3A firewire: sbp2: fix status reception firewire: core: fix topology map response handler firewire: core: fix race with parallel PCI device probe firewire: core: header file cleanup firewire: ohci: fix Self ID Count register mask (safeguard against buffer overflow) ieee1394: raw1394: Do not leak memory on failed trylock.
This commit is contained in:
commit
ff830b8e5f
8 changed files with 34 additions and 36 deletions
|
|
@ -2272,8 +2272,10 @@ static ssize_t raw1394_write(struct file *file, const char __user * buffer,
|
|||
return -EFAULT;
|
||||
}
|
||||
|
||||
if (!mutex_trylock(&fi->state_mutex))
|
||||
if (!mutex_trylock(&fi->state_mutex)) {
|
||||
free_pending_request(req);
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
switch (fi->state) {
|
||||
case opened:
|
||||
|
|
|
|||
|
|
@ -372,8 +372,7 @@ static const struct {
|
|||
/* DViCO Momobay FX-3A with TSB42AA9A bridge */ {
|
||||
.firmware_revision = 0x002800,
|
||||
.model = 0x000000,
|
||||
.workarounds = SBP2_WORKAROUND_DELAY_INQUIRY |
|
||||
SBP2_WORKAROUND_POWER_CONDITION,
|
||||
.workarounds = SBP2_WORKAROUND_POWER_CONDITION,
|
||||
},
|
||||
/* Initio bridges, actually only needed for some older ones */ {
|
||||
.firmware_revision = 0x000200,
|
||||
|
|
|
|||
Loading…
Reference in a new issue