Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9661
b: refs/heads/master
c: de54f39
h: refs/heads/master
i:
  9659: b1aba35
v: v3
  • Loading branch information
Randy Dunlap authored and David S. Miller committed Oct 5, 2005
1 parent 538d96e commit df6896b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 7b5b3f3d826ea87c224c66de9c95c09e7f110ecd
refs/heads/master: de54f3907d2f5d8e25cfafe513811f146b250dee
5 changes: 3 additions & 2 deletions trunk/drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1289,12 +1289,13 @@ static void bond_mc_list_destroy(struct bonding *bond)
/*
* Copy all the Multicast addresses from src to the bonding device dst
*/
static int bond_mc_list_copy(struct dev_mc_list *mc_list, struct bonding *bond, int gpf_flag)
static int bond_mc_list_copy(struct dev_mc_list *mc_list, struct bonding *bond,
unsigned int __nocast gfp_flag)
{
struct dev_mc_list *dmi, *new_dmi;

for (dmi = mc_list; dmi; dmi = dmi->next) {
new_dmi = kmalloc(sizeof(struct dev_mc_list), gpf_flag);
new_dmi = kmalloc(sizeof(struct dev_mc_list), gfp_flag);

if (!new_dmi) {
/* FIXME: Potential memory leak !!! */
Expand Down

0 comments on commit df6896b

Please sign in to comment.