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

Commit 886ddda0 authored by Pratham Pratap's avatar Pratham Pratap Committed by Gerrit - the friendly Code Review server
Browse files

usb: dwc3: replace %p with %pK



Format specifier %p can leak kernel addresses while not valuing the
kptr_restrict system settings. When kptr_restrict is set to (1), kernel
pointers printed using the %pK format specifier will be replaced with 0's.
Debugging Note : &pK prints only Zeros as address. If you need actual
address information, write 0 to kptr_restrict.

echo 0 > /proc/sys/kernel/kptr_restrict

Change-Id: I1a5300d035dfb6366cb8d2740a5890bdb3e4a618
Signed-off-by: default avatarPratham Pratap <prathampratap@codeaurora.org>
parent 202aa1fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1307,7 +1307,7 @@ static int __dwc3_gadget_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req)

	if (req->request.status == -EINPROGRESS) {
		ret = -EBUSY;
		dev_err_ratelimited(dwc->dev, "%s: %p request already in queue",
		dev_err_ratelimited(dwc->dev, "%s: %pK request already in queue",
					dep->name, req);
		return ret;
	}