alistair23-linux/drivers/hv
Fernando Soto 84672369ff Drivers: hv: vmbus: incorrect device name is printed when child device is unregistered
Whenever a device is unregistered in vmbus_device_unregister (drivers/hv/vmbus_drv.c), the device name in the log message may contain garbage as the memory has already been freed by the time pr_info is called. Log example:
 [ 3149.170475] hv_vmbus: child device àõsèè0_5 unregistered

By logging the message just before calling device_unregister, the correct device name is printed:
[ 3145.034652] hv_vmbus: child device vmbus_0_5 unregistered

Also changing register & unregister messages to debug to avoid unnecessarily cluttering the kernel log.

Signed-off-by: Fernando M Soto <fsoto@bluecatnetworks.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-07-16 23:17:48 -07:00
..
channel.c Drivers: hv: vmbus: Implement multi-channel support 2013-06-03 14:09:14 -07:00
channel_mgmt.c Drivers: hv: vmbus: Implement multi-channel support 2013-06-03 14:09:14 -07:00
connection.c Drivers: hv: vmbus: Implement multi-channel support 2013-06-03 14:09:14 -07:00
hv.c drivers: hv: allocate synic structures before hv_synic_init() 2013-06-24 16:24:17 -07:00
hv_balloon.c Drivers: hv: Notify the host of permanent hot-add failures 2013-03-29 09:03:21 -07:00
hv_kvp.c Drivers: hv: kvp: Copy the address family information 2012-09-05 12:12:38 -07:00
hv_snapshot.c Drivers: hv: Add a new driver to support host initiated backup 2013-03-15 12:12:36 -07:00
hv_util.c Drivers: hv: Add a new driver to support host initiated backup 2013-03-15 12:12:36 -07:00
hyperv_vmbus.h drivers: hv: allocate synic structures before hv_synic_init() 2013-06-24 16:24:17 -07:00
Kconfig x86: Make Linux guest support optional 2013-03-04 13:14:25 -08:00
Makefile Drivers: hv: Add a new driver to support host initiated backup 2013-03-15 12:12:36 -07:00
ring_buffer.c drivers: hv: check interrupt mask before read_index 2013-06-24 16:24:17 -07:00
vmbus_drv.c Drivers: hv: vmbus: incorrect device name is printed when child device is unregistered 2013-07-16 23:17:48 -07:00