[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 05 May 2009 09:21:42 -0700
From: Marcel Holtmann <marcel@...tmann.org>
To: Kay Sievers <kay.sievers@...y.org>
Cc: linux-kernel@...r.kernel.org
Subject: kobject_set_name() uses GFP_KERNEL
Hi Kay,
all the users of kobject_set_name() which includes dev_set_name() are
allocating their memory for the device name with GFP_KERNEL. It is not a
big deal since device_add() does the same. However it is not obvious and
I ran into an issue in the Bluetooth stack where I was setting the
device name from a context that can't sleep. If this behavior is on
purpose, we better add an extra comment in the documentation.
Regards
Marcel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists