Messages in this thread Patch in this message | | | Date | Tue, 27 Jun 2006 00:00:24 -0700 | From | Chris Wright <> | Subject | [PATCH 24/25] Input: return correct size when reading modalias attribute |
| |
-stable review patch. If anyone has any objections, please let us know. ------------------
From: Richard Purdie <rpurdie@rpsys.net>
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> ---
drivers/input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.17.1.orig/drivers/input/input.c +++ linux-2.6.17.1/drivers/input/input.c @@ -629,7 +629,7 @@ static ssize_t input_dev_show_modalias(s 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); -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |