firewire: core: fix an information leak
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 19 Feb 2010 20:00:02 +0000 (21:00 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:26:49 +0000 (13:26 -0800)
commit7098a32a0303c42e8b2db72fd8cf58c624a96a7e
tree08f3bf78082bd1425a84e6eeceb0e11316714d62
parent6f3fc70b17939b2b3786198d6d5f30c2066516c9
firewire: core: fix an information leak

commit 137d9ebfdbaa45c01f9f0f6d5121ae6f1eb942bd upstream.

If a device exposes a sparsely populated configuration ROM,
firewire-core's sysfs interface and character device file interface
showed random data in the gaps between config ROM blocks.  Fix this by
zero-initialization of the config ROM reader's scratch buffer.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: maximilian attems <max@stro.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/firewire/core-device.c