Commit c091db78 authored by Tejun Heo's avatar Tejun Heo Committed by Greg Kroah-Hartman
Browse files

PCI: pci-stub: ignore zero-length id parameters



commit 99a0fadf upstream.

pci-stub uses strsep() to separate list of ids and generates a warning
message when it fails to parse an id.  However, not specifying the
parameter results in ids set to an empty string.  strsep() happily
returns the empty string as the first token and thus triggers the
warning message spuriously.

Make the tokner ignore zero length ids.

Reported-by: default avatarChris Wright <chrisw@sous-sol.org>
Reported-by: default avatarPrasad Joshi <P.G.Joshi@student.reading.ac.uk>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 955b7457
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment