Skip to content

Commit

Permalink
use vmalloc to allow big array
Browse files Browse the repository at this point in the history
  • Loading branch information
maage committed Sep 21, 2015
1 parent 70e7bc3 commit aff99e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/rtmp_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,8 @@ NDIS_STATUS NICInitializeAsic(

#ifdef RTMP_MAC_USB
{
UINT32 MACValue[254 * 2];
UINT32 *MACValue;
MACValue = vmalloc(sizeof(UINT32) * 254 * 2);

for (Index = 0; Index < 254 * 2; Index += 2)
{
Expand All @@ -1596,6 +1597,7 @@ NDIS_STATUS NICInitializeAsic(
}

BURST_WRITE(pAd, MAC_WCID_BASE, MACValue, 254 * 2);
vfree(MACValue);
}
#endif /* RTMP_MAC_USB */

Expand Down

0 comments on commit aff99e6

Please sign in to comment.