From: Archit Taneja Date: Mon, 2 Aug 2010 13:14:11 +0000 (+0200) Subject: OMAP: DSS2: Replace strncmp() with sysfs_streq() in overlay_manager_store() X-Git-Tag: v2.6.36-rc1~487^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3c77d6332d979b74364ce2f3fc027ff6c0e00d1;p=pandora-kernel.git OMAP: DSS2: Replace strncmp() with sysfs_streq() in overlay_manager_store() The function overlay_manager_store currently fails if the sysfs input is a prefix string of an existing overlay manager name. This occurs because strncmp compares the two strings only till the length of the input sysfs string. So a sysfs input "lcd" will match manager name "lcd2" which is incorrect behavior. The use of sysfs_streq here will prevent this false positive match to occur. Signed-off-by: Archit Taneja Signed-off-by: Tomi Valkeinen --- Reading git-diff-tree failed