Commit 4a0d16e8 authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

[PATCH] USB: Another memory allocation in block IO error handling path

  - memory allocation in block io error code path with GFP_KERNEL
parent d8fccfcc
...@@ -647,7 +647,7 @@ static int usb_hub_port_status(struct usb_device *hub, int port, ...@@ -647,7 +647,7 @@ static int usb_hub_port_status(struct usb_device *hub, int port,
struct usb_port_status *portsts; struct usb_port_status *portsts;
int ret = -ENOMEM; int ret = -ENOMEM;
portsts = kmalloc(sizeof(*portsts), GFP_KERNEL); portsts = kmalloc(sizeof(*portsts), GFP_NOIO);
if (portsts) { if (portsts) {
ret = usb_get_port_status(hub, port + 1, portsts); ret = usb_get_port_status(hub, port + 1, portsts);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment