modify error for no key define in init.rk29board.rc
authorywj <ywj@rockchip.com>
Fri, 7 Dec 2012 10:03:51 +0000 (18:03 +0800)
committerywj <ywj@rockchip.com>
Fri, 7 Dec 2012 10:03:51 +0000 (18:03 +0800)
drivers/input/keyboard/rk29_keys.c

index 1eca1d6a81355e4701cc5c8a0789a58c32d02cae..60066f207816027bb70afe66c1d0234a1cf6323f 100755 (executable)
@@ -99,6 +99,11 @@ static ssize_t rk29key_set(struct device *dev,
        {
                
                p = strstr(buf,Arrary[i].keyArrary);
+               if(p==0)
+              {
+                   printk(" rk29key_set p == 0 error ...............\n");
+                   return 0;
+              }
                
                start = strcspn(p,":");