lib/vsprintf.c: Avoid possible unaligned accesses in %pI6c
authorJoe Perches <joe@perches.com>
Fri, 18 Sep 2009 13:04:06 +0000 (13:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Sep 2009 21:00:05 +0000 (14:00 -0700)
commiteb78cd26b9b519d94e20ce9c0697e5056046669d
tree7957cf4d3d61d5de3152642c0ded0ce230bb2ad1
parent95acf7d7ed95fdb9bfd5b7a71752701a0e382bd9
lib/vsprintf.c: Avoid possible unaligned accesses in %pI6c

Jens Rosenboom noticed that a possibly unaligned const char*
is cast to a const struct in6_addr *.

Avoid this at the cost of a struct in6_addr copy on the stack.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/vsprintf.c