diff options
| author | Archit Taneja <[email protected]> | 2010-08-02 13:14:11 +0000 |
|---|---|---|
| committer | Tomi Valkeinen <[email protected]> | 2010-08-05 13:52:18 +0000 |
| commit | f3c77d6332d979b74364ce2f3fc027ff6c0e00d1 (patch) | |
| tree | ff6c57a6c395a1f5fa7adb5b5dc050a9671fce93 /fs/jbd/commit.c | |
| parent | OMAP: DSS2: Fix error path in omap_dsi_update() (diff) | |
| download | kernel-f3c77d6332d979b74364ce2f3fc027ff6c0e00d1.tar.gz kernel-f3c77d6332d979b74364ce2f3fc027ff6c0e00d1.zip | |
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 <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions
