This is a note to let you know that I've just added the patch titled

    driver/net/benet: fix be_cmd_multicast_set() memcpy bug

to the 2.6.36-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     driver-net-benet-fix-be_cmd_multicast_set-memcpy-bug.patch
and it can be found in the queue-2.6.36 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 7b0b9f4142dfd88923f329b17c2e02a2ca3785ff Mon Sep 17 00:00:00 2001
From: Joe Jin <[email protected]>
Date: Mon, 6 Dec 2010 03:00:59 +0000
Subject: driver/net/benet: fix be_cmd_multicast_set() memcpy bug


From: Joe Jin <[email protected]>

[ Upstream commit 3fd40d0ceac9c234243730f4d7a6ffdb2fd3023a ]

Regarding  benet be_cmd_multicast_set() function, now using
netdev_for_each_mc_addr() helper for mac address copy, but
when copying to req->mac[] did not increase of the index.

Cc: Sathya Perla <[email protected]>
Cc: Subbu Seetharaman <[email protected]>
Cc: Sarveshwar Bandi <[email protected]>
Cc: Ajit Khaparde <[email protected]>
Signed-off-by: Joe Jin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
 drivers/net/benet/be_cmds.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/benet/be_cmds.c
+++ b/drivers/net/benet/be_cmds.c
@@ -1179,7 +1179,7 @@ int be_cmd_multicast_set(struct be_adapt
 
                i = 0;
                netdev_for_each_mc_addr(ha, netdev)
-                       memcpy(req->mac[i].byte, ha->addr, ETH_ALEN);
+                       memcpy(req->mac[i++].byte, ha->addr, ETH_ALEN);
        } else {
                req->promiscuous = 1;
        }


Patches currently in stable-queue which might be from [email protected] are

queue-2.6.36/driver-net-benet-fix-be_cmd_multicast_set-memcpy-bug.patch

_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to