Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51b69900 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: xhci: Fix NULL pointer dereference as part of queue"

parents 14e65147 22e7e0bd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3305,8 +3305,8 @@ int xhci_queue_bulk_tx(struct xhci_hcd *xhci, gfp_t mem_flags,
			/* New sg entry */
			--num_sgs;
			sent_len -= block_len;
			if (num_sgs != 0) {
			sg = sg_next(sg);
			if (num_sgs != 0 && sg) {
				block_len = sg_dma_len(sg);
				addr = (u64) sg_dma_address(sg);
				addr += sent_len;