Re: [PATCH] Don't leak 'old_class_name' indrivers/base/core.c::device_rename()

From: Cornelia Huck
Date: Fri Sep 29 2006 - 04:13:34 EST

On Thu, 28 Sep 2006 23:56:01 +0200,
Jesper Juhl <jesper.juhl@xxxxxxxxx> wrote:

> If kmalloc() fails to allocate space for 'old_symlink_name' in
> drivers/base/core.c::device_rename(), then we'll leak 'old_class_name'.

driver-core-fixes-check-for-return-value-of-sysfs_create_link.patch (in
-mm) already fixes this (amongst other things).

Cornelia Huck
Linux for zSeries Developer
Tel.: +49-7031-16-4837, Mail: cornelia.huck@xxxxxxxxxx
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at