eicon: fix -Warray-bounds warning
authorDanny Kukawka <danny.kukawka@bisect.de>
Thu, 2 Feb 2012 03:20:28 +0000 (03:20 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 11 Nov 2017 13:34:45 +0000 (13:34 +0000)
commitef6b182cf489ada959d51e222e7aaf83ff0ee73e
tree08791404cd661c7969101c51d316cfd458f19127
parentbc23ded31a8b8dbc6fc13a35ed892f9e4f09e37e
eicon: fix -Warray-bounds warning

commit e1f4c485cdb2b1d7aae172b731f6c2b403381ebb upstream.

Fix for a -Warray-bounds warning. mixer_notify_update() tries to
write to ((CAPI_MSG *) msg)->info.facility_req.structs[3] while
structs is defined as byte structs[1]. Set all 'structs' which are
part of the typdefs in the info union to 'byte structs[0]'.

v2: set all info.*.structs to byte structs[0]

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/isdn/hardware/eicon/capi20.h