Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162419
b: refs/heads/master
c: 0b2e3ae
h: refs/heads/master
i:
  162417: 8532afd
  162415: 4d298df
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent 95cb1be commit 620a47e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 30 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: f0da335bdc9bb9410889b4196a9ce9d7173f8c9c
refs/heads/master: 0b2e3aefc34d3d5824e687529c6992521765614d
5 changes: 0 additions & 5 deletions trunk/drivers/staging/rt2860/common/cmm_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,11 +1013,6 @@ BOOLEAN RTMP_FillTxBlkInfo(
}

return TRUE;

#ifdef RT30xx
FillTxBlkErr:
return FALSE;
#endif
}


Expand Down
14 changes: 3 additions & 11 deletions trunk/drivers/staging/rt2860/common/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ INT set_eFuseLoadFromBin_Proc(
{
CHAR *src;
struct file *srcf;
INT retval, orgfsuid, orgfsgid;
INT retval;
mm_segment_t orgfs;
UCHAR *buffer;
UCHAR BinFileSize=0;
Expand Down Expand Up @@ -1078,12 +1078,7 @@ INT set_eFuseLoadFromBin_Proc(
kfree(buffer);
return FALSE;
}
/* Don't change to uid 0, let the file be opened as the "normal" user */
#if 0
orgfsuid = current->fsuid;
orgfsgid = current->fsgid;
current->fsuid=current->fsgid = 0;
#endif

orgfs = get_fs();
set_fs(KERNEL_DS);

Expand Down Expand Up @@ -1146,10 +1141,7 @@ INT set_eFuseLoadFromBin_Proc(
DBGPRINT(RT_DEBUG_TRACE, ("--> Error %d closing %s\n", -retval, src));
}
set_fs(orgfs);
#if 0
current->fsuid = orgfsuid;
current->fsgid = orgfsgid;
#endif

for(j=0;j<i;j++)
{
DBGPRINT(RT_DEBUG_TRACE, ("%02X ",buffer[j]));
Expand Down
11 changes: 1 addition & 10 deletions trunk/drivers/staging/rt2860/rt_profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ NDIS_STATUS RTMPReadParametersHook(
{
PUCHAR src = NULL;
struct file *srcf;
INT retval, orgfsuid, orgfsgid;
INT retval;
mm_segment_t orgfs;
CHAR *buffer;
CHAR *tmpbuf;
Expand All @@ -884,15 +884,6 @@ NDIS_STATUS RTMPReadParametersHook(

src = STA_PROFILE_PATH;

// Save uid and gid used for filesystem access.
// Set user and group to 0 (root)
#ifndef RT30xx
orgfsuid = current_fsuid();
orgfsgid = current_fsgid();
/* Hm, can't really do this nicely anymore, so rely on these files
* being set to the proper permission to read them... */
/* current->cred->fsuid = current->cred->fsgid = 0; */
#endif
orgfs = get_fs();
set_fs(KERNEL_DS);

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/rt2870/common/rtusb_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -1754,9 +1754,9 @@ VOID CMDHandler(
case RT_CMD_SET_RX_WCID_TABLE: //General call for RTMPAddWcidAttributeEntry()
{
PMAC_TABLE_ENTRY pEntry;
UCHAR KeyIdx;
UCHAR CipherAlg;
UCHAR ApIdx;
UCHAR KeyIdx = 0;
UCHAR CipherAlg = 0;
UCHAR ApIdx = 0;

pEntry = (PMAC_TABLE_ENTRY)(pData);

Expand Down

0 comments on commit 620a47e

Please sign in to comment.