diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2006-06-27 01:25:35 -0400 |
---|---|---|
committer | Chris Wright <chrisw@sous-sol.org> | 2006-06-29 17:17:17 -0700 |
commit | 988bc3337ebc15c7c6078d3263b0599bc744d693 (patch) | |
tree | a7277046a37200525043e840baaa9b5c46a5ac23 | |
parent | 26992852dde78e6acc9a9b2bdc9e734428e34d65 (diff) | |
download | lwn-988bc3337ebc15c7c6078d3263b0599bc744d693.tar.gz lwn-988bc3337ebc15c7c6078d3263b0599bc744d693.zip |
[PATCH] Input: return correct size when reading modalias attribute
Input: return correct size when reading modalias attribute
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
-rw-r--r-- | drivers/input/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index 3038c268917d..b149c9434849 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -629,7 +629,7 @@ static ssize_t input_dev_show_modalias(struct class_device *dev, char *buf) len = input_print_modalias(buf, PAGE_SIZE, id, 1); - return max_t(int, len, PAGE_SIZE); + return min_t(int, len, PAGE_SIZE); } static CLASS_DEVICE_ATTR(modalias, S_IRUGO, input_dev_show_modalias, NULL); |