vanhofen
3 years ago
3 changed files with 8 additions and 78 deletions
@ -1,30 +0,0 @@ |
|||
From 333d5fbbc03481f1aa222bd68c2609db168ae3e0 Mon Sep 17 00:00:00 2001 |
|||
From: Paul Eggleton <paul.eggleton@linux.intel.com> |
|||
Date: Thu, 26 Jul 2012 10:37:32 +0100 |
|||
Subject: [PATCH] usb-devices: avoid dependency on bash |
|||
|
|||
By virtue of having #!/bin/bash this script declared that it requires |
|||
bash, however manual examination, checkbashisms and tests with dash |
|||
and busybox show that it doesn't contain any bashisms, so change the |
|||
header to avoid the dependency. |
|||
|
|||
Upstream-Status: Pending |
|||
|
|||
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> |
|||
---
|
|||
usb-devices | 2 +- |
|||
1 file changed, 1 insertion(+), 1 deletion(-) |
|||
|
|||
diff --git a/usb-devices b/usb-devices
|
|||
index b2052e2..14a5358 100755
|
|||
--- a/usb-devices
|
|||
+++ b/usb-devices
|
|||
@@ -1,4 +1,4 @@
|
|||
-#!/bin/bash
|
|||
+#!/bin/sh
|
|||
|
|||
# Copyright: 2009 Greg Kroah-Hartman <greg@kroah.com> |
|||
# 2009 Randy Dunlap <rdunlap@xenotime.net> |
|||
--
|
|||
1.7.9.5 |
|||
|
@ -1,28 +0,0 @@ |
|||
Fix NULL pointer crash. |
|||
|
|||
Before use usbbuslist, we should check if it is valid. |
|||
|
|||
Upstream-Status: Pending |
|||
Signed-off-by: Roy.Li <rongqing.li@windriver.com> |
|||
---
|
|||
lsusb-t.c | 4 ++++ |
|||
1 files changed, 4 insertions(+), 0 deletions(-) |
|||
|
|||
diff --git a/lsusb-t.c b/lsusb-t.c
|
|||
index f604155..583a46a 100644
|
|||
--- a/lsusb-t.c
|
|||
+++ b/lsusb-t.c
|
|||
@@ -643,6 +643,10 @@ static void sort_busses(void)
|
|||
/* need to reverse sort bus numbers */ |
|||
struct usbbusnode *t, *p, **pp; |
|||
int swapped; |
|||
+
|
|||
+ if (!usbbuslist)
|
|||
+ return;
|
|||
+
|
|||
do { |
|||
p = usbbuslist; |
|||
pp = &usbbuslist; |
|||
--
|
|||
1.7.4.1 |
|||
|
Loading…
Reference in new issue