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

Commit a149b51d authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Greg Kroah-Hartman
Browse files

Staging: rt3070: fix PID checking in RTUSBEnqueueCmdFromNdis()

parent 34bbd837
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -982,12 +982,7 @@ NDIS_STATUS RTUSBEnqueueCmdFromNdis(
	PCmdQElmt	cmdqelmt = NULL;
	POS_COOKIE pObj = (POS_COOKIE) pAd->OS_Cookie;

#ifndef RT30xx
	if (pid_nr(pObj->RTUSBCmdThr_pid) > 0)
#endif
#ifdef RT30xx
	if (pObj->RTUSBCmdThr_pid < 0)
#endif
		return (NDIS_STATUS_RESOURCES);

	status = RTMPAllocateMemory((PVOID *)&cmdqelmt, sizeof(CmdQElmt));