aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/host/ohci-nxp.c
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2013-05-14 16:46:06 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-21 10:14:40 -0700
commitc055da9fbad4b63bb3169f2b1a8b7ad429270bd0 (patch)
tree5a861955edf614619a237e671a0d8a65c674612b /drivers/usb/host/ohci-nxp.c
parenta4e2400a63f0e4fb6af5083a24d80b6fa4c41ccd (diff)
cpu: fix "crash_notes" and "crash_notes_size" leaks in register_cpu()
"crash_notes" and "crash_notes_size" are dynamically created with device_create_file() but aren't deleted anywhere. Define "crash_notes" and "crash_notes_size" statically via attribute groups so that device_register would create them automatically and files would be destroyed when CPU is destroyed. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ohci-nxp.c')
0 files changed, 0 insertions, 0 deletions