git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ACPI: sbshc: remove raw pointer from printk() message
[pandora-kernel.git]
/
drivers
/
firewire
/
core-device.c
diff --git
a/drivers/firewire/core-device.c
b/drivers/firewire/core-device.c
index
f3b890d
..
1f3dd51
100644
(file)
--- a/
drivers/firewire/core-device.c
+++ b/
drivers/firewire/core-device.c
@@
-995,6
+995,10
@@
static void fw_device_init(struct work_struct *work)
ret = idr_pre_get(&fw_device_idr, GFP_KERNEL) ?
idr_get_new(&fw_device_idr, device, &minor) :
-ENOMEM;
+ if (minor >= 1 << MINORBITS) {
+ idr_remove(&fw_device_idr, minor);
+ minor = -ENOSPC;
+ }
up_write(&fw_device_rwsem);
if (ret < 0)