OMAP: DSS2: Replace strncmp() with sysfs_streq() in overlay_manager_store()
authorArchit Taneja <archit@ti.com>
Mon, 2 Aug 2010 13:14:11 +0000 (15:14 +0200)
committerTomi Valkeinen <tomi.valkeinen@nokia.com>
Thu, 5 Aug 2010 13:52:18 +0000 (16:52 +0300)
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 <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>

No differences found