Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236456
b: refs/heads/master
c: 306be9e
h: refs/heads/master
v: v3
  • Loading branch information
Ilia Mirkin authored and Greg Kroah-Hartman committed Mar 14, 2011
1 parent e81a090 commit 501970d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 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: 56d17639703b4683e3e9be36dff7c6d811f4cbf5
refs/heads/master: 306be9e1c167dcd7d6635bd434ee8e63ab22a5d6
22 changes: 8 additions & 14 deletions trunk/drivers/staging/keucr/ms.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ int MS_CardInit(struct us_data *us)
result = MS_STATUS_SUCCESS;

exit:
if (PageBuffer1) kfree(PageBuffer1);
if (PageBuffer0) kfree(PageBuffer0);
kfree(PageBuffer1);
kfree(PageBuffer0);

printk("MS_CardInit end\n");
return result;
Expand Down Expand Up @@ -280,7 +280,7 @@ int MS_LibCheckDisableBlock(struct us_data *us, WORD PhyBlock)
} while(1);

exit:
if (PageBuf) kfree(PageBuf);
kfree(PageBuf);
return result;
}

Expand Down Expand Up @@ -324,17 +324,11 @@ void MS_LibFreeWriteBuf(struct us_data *us)
//----- MS_LibFreeLogicalMap() ---------------------------------------
int MS_LibFreeLogicalMap(struct us_data *us)
{
if (us->MS_Lib.Phy2LogMap)
{
kfree(us->MS_Lib.Phy2LogMap);
us->MS_Lib.Phy2LogMap = NULL;
}
kfree(us->MS_Lib.Phy2LogMap);
us->MS_Lib.Phy2LogMap = NULL;

if (us->MS_Lib.Log2PhyMap)
{
kfree(us->MS_Lib.Log2PhyMap);
us->MS_Lib.Log2PhyMap = NULL;
}
kfree(us->MS_Lib.Log2PhyMap);
us->MS_Lib.Log2PhyMap = NULL;

return 0;
}
Expand Down Expand Up @@ -470,7 +464,7 @@ int MS_LibProcessBootBlock(struct us_data *us, WORD PhyBlock, BYTE *PageData)

exit:
if (result) MS_LibFreeLogicalMap(us);
if (PageBuffer) kfree(PageBuffer);
kfree(PageBuffer);

result = 0;
return result;
Expand Down

0 comments on commit 501970d

Please sign in to comment.