The patch titled Subject: firewire: fw_device_init: 'minor' may be used uninitialized has been added to the -mm tree. Its filename is firewire-convert-to-idr_alloc-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Tim Gardner <tim.gardner@xxxxxxxxxxxxx> Subject: firewire: fw_device_init: 'minor' may be used uninitialized 'firewire: convert to idr_alloc()' accidentally orphaned 'minor'. drivers/firewire/core-device.c: In function `fw_device_init': drivers/firewire/core-device.c:1029:24: warning: `minor' may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Tim Gardner <tim.gardner@xxxxxxxxxxxxx> Signed-off-by: Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx> Acked-by: Tejun Heo <tj@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/firewire/core-device.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -puN drivers/firewire/core-device.c~firewire-convert-to-idr_alloc-fix drivers/firewire/core-device.c --- a/drivers/firewire/core-device.c~firewire-convert-to-idr_alloc-fix +++ a/drivers/firewire/core-device.c @@ -1017,10 +1017,11 @@ static void fw_device_init(struct work_s fw_device_get(device); down_write(&fw_device_rwsem); - ret = idr_alloc(&fw_device_idr, device, 0, 1 << MINORBITS, GFP_KERNEL); + minor = idr_alloc(&fw_device_idr, device, 0, 1 << MINORBITS, + GFP_KERNEL); up_write(&fw_device_rwsem); - if (ret < 0) + if (minor < 0) goto error; device->device.bus = &fw_bus_type; _ Patches currently in -mm which might be from tim.gardner@xxxxxxxxxxxxx are linux-next.patch ocfs2-remove-kfree-redundant-null-checks.patch ocfs2-remove-kfree-redundant-null-checks-fix.patch firewire-convert-to-idr_alloc-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html