]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2d0bf74be909b7828858b66034e75cf7ced81490
tree271d0250c23b52cb0a24ee1f0f74851967adc556
parentaf52dad5a2a0c149d98155839aa76f376b8a507b
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