From 3b20fd83c73c22acfcb0c6663be747bd5c8b7011 Mon Sep 17 00:00:00 2001 From: Ryan CHEN Date: Wed, 20 Aug 2008 13:00:17 -0400 Subject: [PATCH] Correct drv_usb_kbd_init function The patch is that check if usb_get_dev_index() function return valid pointer. If valid, continue. Otherwise return -1. Signed-off-by: Ryan Chen Acked-by: Markus Klotzbuecher --- common/usb_kbd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/usb_kbd.c b/common/usb_kbd.c index 108bd60f95..920bb0ffbe 100644 --- a/common/usb_kbd.c +++ b/common/usb_kbd.c @@ -162,6 +162,8 @@ int drv_usb_kbd_init(void) /* scan all USB Devices */ for(i=0;idevnum!=-1) { if(usb_kbd_probe(dev,0)==1) { /* Ok, we found a keyboard */ /* check, if it is already registered */ -- 2.30.2