diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2006-06-26 01:48:21 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 01:48:21 -0400 |
commit | 8a3cf456adbde8317a15fc038cfe82c630512f2e (patch) | |
tree | 376ba671845f8c12c646b9b25979a792916f3f4e | |
parent | 62f7caf9273e3596aab1ec399b5c1e02cfb390da (diff) | |
download | op-kernel-dev-8a3cf456adbde8317a15fc038cfe82c630512f2e.zip op-kernel-dev-8a3cf456adbde8317a15fc038cfe82c630512f2e.tar.gz |
Input: return correct size when reading modalias attribute
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-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 3038c26..b149c94 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); |