hysdn: fix writing outside the field on 64 bits
authorPascal Terjan <pterjan@mandriva.com>
Mon, 1 Dec 2008 12:24:25 +0000 (12:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Dec 2008 05:01:28 +0000 (21:01 -0800)
commitbd0914104c61a852baf469b2d807322e5d0459b4
tree271d0250c23b52cb0a24ee1f0f74851967adc556
parent1c594c05a75770ab53a329fc4eb99c797a4bc7d7
hysdn: fix writing outside the field on 64 bits

ifa_local is assumed to be unsigned long which lead to writing the address
at dev->dev_addr-2 instead of +2

noticed thanks to gcc:

drivers/isdn/hysdn/hysdn_net.c: In function `net_open':
drivers/isdn/hysdn/hysdn_net.c:91: warning: array subscript is below array bounds

Signed-off-by: Pascal Terjan <pterjan@mandriva.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hysdn/hysdn_net.c