diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-04-22 09:45:00 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-04-22 09:45:00 +0000 |
commit | ddf404afa8a0ccd0694cc5e60d9ace07d712b68b (patch) | |
tree | 551e78c3d423619d650e3925a8f8094b448cae4b /lspcidrake.c | |
parent | 1048fa9cb404faf12ff1b850aa81f32891d5fca9 (diff) | |
download | ldetect-ddf404afa8a0ccd0694cc5e60d9ace07d712b68b.tar ldetect-ddf404afa8a0ccd0694cc5e60d9ace07d712b68b.tar.gz ldetect-ddf404afa8a0ccd0694cc5e60d9ace07d712b68b.tar.bz2 ldetect-ddf404afa8a0ccd0694cc5e60d9ace07d712b68b.tar.xz ldetect-ddf404afa8a0ccd0694cc5e60d9ace07d712b68b.zip |
- Use read() instead of fread() to read from "/proc/bus/pci/%02x/%02x.%d".
Thanks a lot to Tom Cox for finding this bug:
The proc.c module in the kernel source clearly states that
reading more than 64 bytes can cause problems. The pci.c
module in the ldetect library uses the buffered fread()
function. This function always reads in blocks, so when
run as root, the read always tried to read more than the
user requested amount.
This should fix freezes when doing a full probe
Diffstat (limited to 'lspcidrake.c')
0 files changed, 0 insertions, 0 deletions