Kaladhar Musunuru wrote:
> Fix typo in memset. Incorrect length parameter to memset resulting non-zero 
> MAC address in FPMA messages. 
> 
> Signed-off-by: Kaladhar Musunuru [email protected]
> ---
> 
> diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/libfcoe.c
> index 58cbccd..11036e2 100644
> --- a/drivers/scsi/fcoe/libfcoe.c
> +++ b/drivers/scsi/fcoe/libfcoe.c
> @@ -438,7 +438,7 @@ static int fcoe_ctlr_encaps(struct fcoe_ctlr *fip, struct 
> fc_lport *lport,
>         cap->encaps.fd_desc.fip_dlen = dlen / FIP_BPW;
> 
>         mac = (struct fip_mac_desc *)skb_put(skb, sizeof(*mac));
> -       memset(mac, 0, sizeof(mac));
> +       memset(mac, 0, sizeof(*mac));
>         mac->fd_desc.fip_dtype = FIP_DT_MAC;
>         mac->fd_desc.fip_dlen = sizeof(*mac) / FIP_BPW;
>         if (dtype != FIP_DT_FLOGI && dtype != FIP_DT_FDISC) {
> 
> 
> _______________________________________________
> devel mailing list
> [email protected]
> http://www.open-fcoe.org/mailman/listinfo/devel

Good find.  My mistake.   Thanks for the fix.

Acked-by: Joe Eykholt <[email protected]>

        Joe

_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel

Reply via email to