[openib-general] [PATCH] IB/core - ib_umad can cause address alignment fault onia64

Sean Hefty mshefty at ichips.intel.com
Thu Jan 18 10:40:54 PST 2007


JWM wrote:
>    if(copy_from_user(&packet->mad,buf,
>        sizeof(struct ib_user_mad) + IB_MGMT_RMPP_HDR))
> 
>    BTW - why is IB_MGMT_RMPP_HDR an enum? Why not a sizeof ?

No structure was ever defined for just this (standard MAD header + RMPP header 
only).

- Sean




More information about the general mailing list