Commit 26e12098 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] Missing check in PCI hotplug.

Missed forward port from 2.4. ACKed by GregKH
parent 5a702a60
......@@ -596,7 +596,7 @@ static ssize_t power_read_file (struct file *file, char *buf, size_t count, loff
if (*offset < 0)
return -EINVAL;
if (count <= 0)
if (count == 0 || count > 16384)
return 0;
if (*offset != 0)
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment