Re: [PATCH 03/10] staging: rtl8723au: rtw_put_snap23a(): Use put_unaligned to set protocol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dan Carpenter <dan.carpenter@xxxxxxxxxx> writes:
> On Mon, Nov 10, 2014 at 06:11:39PM -0500, Jes.Sorensen@xxxxxxxxxx wrote:
>> diff --git a/drivers/staging/rtl8723au/core/rtw_xmit.c
>> b/drivers/staging/rtl8723au/core/rtw_xmit.c
>> index 18a9f34..f8b1243 100644
>> --- a/drivers/staging/rtl8723au/core/rtw_xmit.c
>> +++ b/drivers/staging/rtl8723au/core/rtw_xmit.c
>> @@ -1247,7 +1247,7 @@ s32 rtw_put_snap23a(u8 *data, u16 h_proto)
>>  		ether_addr_copy(data, rfc1042_header);
>
> Doesn't the ether_add_copy() also require that data is aligned?
>
> regards,
> dan carpenter

Hi Dan,

Actually I think the other one was a false positive, and wasn't
necessary either. We're putting the data onto an xmit frame allocated
within the driver, so alignment ought to be safe.

Cheers,
Jes
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux