[PATCH] blkparse: make sure new pci infos have ->fd initialized to -1
authorJens Axboe <axboe@suse.de>
Wed, 25 Jan 2006 23:27:28 +0000 (15:27 -0800)
committerJens Axboe <axboe@suse.de>
Wed, 25 Jan 2006 23:27:28 +0000 (15:27 -0800)
commitcb7b061dee71a4a1987f22a356bdf8f69bebd000
tree20cb2154508ee3fdb689af738ced2d70c82bd179
parent649c7b6641e4c0b23bb2e51d4aca126fae893653
[PATCH] blkparse: make sure new pci infos have ->fd initialized to -1

This avoids hangs in blktrace when seeing potentially invalid samples, since
it will attempt to read from fd == 0 (stdin) in that case.
blkparse.c