summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/ci13xxx_udc.c
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2010-08-02 15:14:11 +0200
committerTomi Valkeinen <tomi.valkeinen@nokia.com>2010-08-05 16:52:18 +0300
commitf3c77d6332d979b74364ce2f3fc027ff6c0e00d1 (patch)
treeff6c57a6c395a1f5fa7adb5b5dc050a9671fce93 /drivers/usb/gadget/ci13xxx_udc.c
parente9c31afcffe3df90ebac343611b2f0177bf3cbe4 (diff)
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 <archit@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/usb/gadget/ci13xxx_udc.c')
0 files changed, 0 insertions, 0 deletions