Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ti-connected-launchpad
lm4tools_public
Commits
5d7468de
Commit
5d7468de
authored
Nov 13, 2012
by
Fabio Utzig
Browse files
Fix segmentation error when running as unpriv user
parent
309be308
Changes
1
Hide whitespace changes
Inline
Side-by-side
lmicdiusb/lmicdi.c
View file @
5d7468de
...
@@ -198,6 +198,7 @@ main(int argc, char *argv[])
...
@@ -198,6 +198,7 @@ main(int argc, char *argv[])
if
(
rc
!=
0
)
if
(
rc
!=
0
)
{
{
TRACE
(
ALWAYS
,
"Failed to open device. rc = %d
\n
"
,
rc
);
TRACE
(
ALWAYS
,
"Failed to open device. rc = %d
\n
"
,
rc
);
goto
out
;
}
}
//
//
...
@@ -363,6 +364,7 @@ found:
...
@@ -363,6 +364,7 @@ found:
TRACE
(
1
,
"%s: libusb_close(phDev)
\n
"
,
__FUNCTION__
);
TRACE
(
1
,
"%s: libusb_close(phDev)
\n
"
,
__FUNCTION__
);
libusb_close
(
phDev
);
libusb_close
(
phDev
);
out:
TRACE
(
1
,
"%s: libusb_exit
\n
"
,
__FUNCTION__
);
TRACE
(
1
,
"%s: libusb_exit
\n
"
,
__FUNCTION__
);
libusb_exit
(
pCtx
);
libusb_exit
(
pCtx
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment