]> git.baikalelectronics.ru Git - kernel.git/commit
smsc95xx: fix smsc_crc return type
authorSteve Glendinning <steve.glendinning@shawell.net>
Fri, 30 Nov 2012 05:55:51 +0000 (05:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Nov 2012 17:27:20 +0000 (12:27 -0500)
commit1746ffff73cf7cb02936e74954291e69d0f52d58
tree552f539a507de003e6094b0e254dd0a37c48ea7f
parent89db68a70321436d45a2ba134d23758e224d47e8
smsc95xx: fix smsc_crc return type

This patch fixes a bug introduced in 9b1b7ad which could prevent
some wakeups from working correctly if multiple wol options were
selected.

This helper function calculates a 16-bit crc and shifts it into
either the high or low 16 bits of a u32 so the caller can or it
directly into place.  The function previously had a u16 return
type so would always have returned zero when filter was odd.

Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Reported-by: Bjorn Mork <bjorn@mork.no>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c