aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2019-08-30 16:39:13 +0300
committerGreg Kroah-Hartman <[email protected]>2019-09-03 15:49:11 +0200
commit5a030e618712fcdae0bc61b8c2303bac1c2b805e (patch)
tree5aecd32e21a8d64a36a5ad1bcb83827e657724a2 /scripts/gdb/linux/modules.py
parent5d04111d76e2ef7b54ce364ff72076c676e684c0 (diff)
usb: xhci: dbc: Simplify error handling in 'xhci_dbc_alloc_requests()'
If the 'kmalloc()' fails, we need to undo the previous 'dbc_alloc_request()' call. Because of the more similar function name, it is more logical to use 'dbc_free_request()' instead of 'xhci_dbc_free_req()'. Both are equivalent here because: static void xhci_dbc_free_req(struct dbc_ep *dep, struct dbc_request *req) { kfree(req->buf); dbc_free_request(dep, req); } and 'req->buf' is known to be NULL at this point Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Mathias Nyman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions