Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248986
b: refs/heads/master
c: ab89111
h: refs/heads/master
v: v3
  • Loading branch information
Luis R. Rodriguez authored and Greg Kroah-Hartman committed Apr 5, 2011
1 parent 98193c1 commit fe81aaf
Show file tree
Hide file tree
Showing 19 changed files with 72 additions and 79 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1fec95c503bea25665e5d62221016255a20f2c02
refs/heads/master: ab8911150f824f496c67b3bab19c15ff62ddff27
8 changes: 4 additions & 4 deletions trunk/drivers/staging/ath6kl/bmi/src/bmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ void
BMICleanup(void)
{
if (pBMICmdCredits) {
A_FREE(pBMICmdCredits);
kfree(pBMICmdCredits);
pBMICmdCredits = NULL;
}

if (pBMICmdBuf) {
A_FREE(pBMICmdBuf);
kfree(pBMICmdBuf);
pBMICmdBuf = NULL;
}
}
Expand All @@ -127,12 +127,12 @@ BMIDone(struct hif_device *device)
}

if (pBMICmdCredits) {
A_FREE(pBMICmdCredits);
kfree(pBMICmdCredits);
pBMICmdCredits = NULL;
}

if (pBMICmdBuf) {
A_FREE(pBMICmdBuf);
kfree(pBMICmdBuf);
pBMICmdBuf = NULL;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ int SetupHIFScatterSupport(struct hif_device *device, struct hif_device_scatter_
(MAX_SCATTER_ENTRIES_PER_REQ - 1) * (sizeof(struct hif_scatter_item)));

if (NULL == pReqPriv->pHifScatterReq) {
A_FREE(pReqPriv);
kfree(pReqPriv);
break;
}
/* just zero the main part of the scatter request */
Expand All @@ -319,8 +319,8 @@ int SetupHIFScatterSupport(struct hif_device *device, struct hif_device_scatter_
/* allocate a bus request for this scatter request */
busrequest = hifAllocateBusRequest(device);
if (NULL == busrequest) {
A_FREE(pReqPriv->pHifScatterReq);
A_FREE(pReqPriv);
kfree(pReqPriv->pHifScatterReq);
kfree(pReqPriv);
break;
}
/* assign the scatter request to this bus request */
Expand Down Expand Up @@ -382,11 +382,11 @@ void CleanupHIFScatterResources(struct hif_device *device)
}

if (pReqPriv->pHifScatterReq != NULL) {
A_FREE(pReqPriv->pHifScatterReq);
kfree(pReqPriv->pHifScatterReq);
pReqPriv->pHifScatterReq = NULL;
}

A_FREE(pReqPriv);
kfree(pReqPriv);
}
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/ath6kl/htc2/AR6000/ar6k.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ static void DevCleanupVirtualScatterSupport(struct ar6k_device *pDev)
if (NULL == pReq) {
break;
}
A_FREE(pReq);
kfree(pReq);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static void HCIUartCleanup(struct gmbox_proto_hci_uart *pProtocol)
A_MUTEX_DELETE(&pProtocol->HCIRxLock);
A_MUTEX_DELETE(&pProtocol->HCITxLock);

A_FREE(pProtocol);
kfree(pProtocol);
}

static int InitTxCreditState(struct gmbox_proto_hci_uart *pProt)
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/ath6kl/htc2/htc.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static void HTCCleanup(struct htc_target *target)

for (i = 0;i < NUM_CONTROL_BUFFERS;i++) {
if (target->HTCControlBuffers[i].Buffer) {
A_FREE(target->HTCControlBuffers[i].Buffer);
kfree(target->HTCControlBuffers[i].Buffer);
}
}

Expand All @@ -86,7 +86,7 @@ static void HTCCleanup(struct htc_target *target)
A_MUTEX_DELETE(&target->HTCTxLock);
}
/* free our instance */
A_FREE(target);
kfree(target);
}

/* registered target arrival callback from the HIF layer */
Expand Down
22 changes: 11 additions & 11 deletions trunk/drivers/staging/ath6kl/miscdrv/ar3kconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static int SendHCICommand(struct ar3k_config_info *pConfig,
} while (false);

if (pPacket != NULL) {
A_FREE(pPacket);
kfree(pPacket);
}

return status;
Expand Down Expand Up @@ -116,7 +116,7 @@ static int RecvHCIEvent(struct ar3k_config_info *pConfig,
} while (false);

if (pRecvPacket != NULL) {
A_FREE(pRecvPacket);
kfree(pRecvPacket);
}

return status;
Expand Down Expand Up @@ -203,7 +203,7 @@ int SendHCICommandWaitCommandComplete(struct ar3k_config_info *pConfig,
} while (false);

if (pBuffer != NULL) {
A_FREE(pBuffer);
kfree(pBuffer);
}

return status;
Expand Down Expand Up @@ -268,7 +268,7 @@ static int AR3KConfigureHCIBaud(struct ar3k_config_info *pConfig)
} while (false);

if (pBufferToFree != NULL) {
A_FREE(pBufferToFree);
kfree(pBufferToFree);
}

return status;
Expand Down Expand Up @@ -304,7 +304,7 @@ static int AR3KExitMinBoot(struct ar3k_config_info *pConfig)
}

if (pBufferToFree != NULL) {
A_FREE(pBufferToFree);
kfree(pBufferToFree);
}

return status;
Expand All @@ -328,7 +328,7 @@ static int AR3KConfigureSendHCIReset(struct ar3k_config_info *pConfig)
}

if (pBufferToFree != NULL) {
A_FREE(pBufferToFree);
kfree(pBufferToFree);
}

return status;
Expand Down Expand Up @@ -382,7 +382,7 @@ static int AR3KEnableTLPM(struct ar3k_config_info *pConfig)
&pEvent,
&pBufferToFree);
if (pBufferToFree != NULL) {
A_FREE(pBufferToFree);
kfree(pBufferToFree);
}
if (status) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("HostWakeup Config Failed! \n"));
Expand All @@ -397,7 +397,7 @@ static int AR3KEnableTLPM(struct ar3k_config_info *pConfig)
&pEvent,
&pBufferToFree);
if (pBufferToFree != NULL) {
A_FREE(pBufferToFree);
kfree(pBufferToFree);
}
if (status) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("Target Wakeup Config Failed! \n"));
Expand All @@ -412,7 +412,7 @@ static int AR3KEnableTLPM(struct ar3k_config_info *pConfig)
&pEvent,
&pBufferToFree);
if (pBufferToFree != NULL) {
A_FREE(pBufferToFree);
kfree(pBufferToFree);
}
if (status) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("HostWakeup Enable Failed! \n"));
Expand All @@ -427,7 +427,7 @@ static int AR3KEnableTLPM(struct ar3k_config_info *pConfig)
&pEvent,
&pBufferToFree);
if (pBufferToFree != NULL) {
A_FREE(pBufferToFree);
kfree(pBufferToFree);
}
if (status) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("Target Wakeup Enable Failed! \n"));
Expand All @@ -442,7 +442,7 @@ static int AR3KEnableTLPM(struct ar3k_config_info *pConfig)
&pEvent,
&pBufferToFree);
if (pBufferToFree != NULL) {
A_FREE(pBufferToFree);
kfree(pBufferToFree);
}
if (status) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("Sleep Enable Failed! \n"));
Expand Down
22 changes: 11 additions & 11 deletions trunk/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ int PSSendOps(void *arg)
A_RELEASE_FIRMWARE(firmware);
/* Parse the PS buffer to a global variable */
status = AthDoParsePS(buffer,len);
A_FREE(buffer);
kfree(buffer);
} else {
A_RELEASE_FIRMWARE(firmware);
}
Expand Down Expand Up @@ -256,7 +256,7 @@ int PSSendOps(void *arg)
A_RELEASE_FIRMWARE(firmware);
/* parse and store the Patch file contents to a global variables */
status = AthDoParsePatch(buffer,len);
A_FREE(buffer);
kfree(buffer);
} else {
A_RELEASE_FIRMWARE(firmware);
}
Expand All @@ -283,7 +283,7 @@ int PSSendOps(void *arg)
&bufferToFree) == 0) {
if(ReadPSEvent(event) == 0) { /* Exit if the status is success */
if(bufferToFree != NULL) {
A_FREE(bufferToFree);
kfree(bufferToFree);
}

#ifndef HCI_TRANSPORT_SDIO
Expand All @@ -295,7 +295,7 @@ int PSSendOps(void *arg)
goto complete;
}
if(bufferToFree != NULL) {
A_FREE(bufferToFree);
kfree(bufferToFree);
}
} else {
status = 0;
Expand All @@ -312,13 +312,13 @@ int PSSendOps(void *arg)
&bufferToFree) == 0) {
if(ReadPSEvent(event) != 0) { /* Exit if the status is success */
if(bufferToFree != NULL) {
A_FREE(bufferToFree);
kfree(bufferToFree);
}
status = 1;
goto complete;
}
if(bufferToFree != NULL) {
A_FREE(bufferToFree);
kfree(bufferToFree);
}
} else {
status = 0;
Expand Down Expand Up @@ -376,10 +376,10 @@ int PSSendOps(void *arg)
AthFreeCommandList(&HciCmdList,numCmds);
}
if(path) {
A_FREE(path);
kfree(path);
}
if(config_path) {
A_FREE(config_path);
kfree(config_path);
}
return status;
}
Expand Down Expand Up @@ -511,7 +511,7 @@ int write_bdaddr(struct ar3k_config_info *pConfig,u8 *bdaddr,int type)

}
if(bufferToFree != NULL) {
A_FREE(bufferToFree);
kfree(bufferToFree);
}
return result;

Expand All @@ -527,7 +527,7 @@ int ReadVersionInfo(struct ar3k_config_info *pConfig)

}
if(bufferToFree != NULL) {
A_FREE(bufferToFree);
kfree(bufferToFree);
}
return result;
}
Expand Down Expand Up @@ -564,7 +564,7 @@ int getDeviceType(struct ar3k_config_info *pConfig, u32 *code)

}
if(bufferToFree != NULL) {
A_FREE(bufferToFree);
kfree(bufferToFree);
}
return result;
}
Expand Down
Loading

0 comments on commit fe81aaf

Please sign in to comment.