diff options
author | Fernando Soto <fsoto@bluecatnetworks.com> | 2013-06-15 01:13:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-17 08:17:48 +0200 |
commit | 84672369ffb98a51d4ddf74c20a23636da3ad615 (patch) | |
tree | 7056581822656336ecaea96d1edbfd51211dfde3 /Documentation/aoe/udev.txt | |
parent | Linux 3.11-rc1 (diff) | |
download | linux-84672369ffb98a51d4ddf74c20a23636da3ad615.tar.xz linux-84672369ffb98a51d4ddf74c20a23636da3ad615.zip |
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>
Diffstat (limited to 'Documentation/aoe/udev.txt')
0 files changed, 0 insertions, 0 deletions