Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
533d1e0f
Commit
533d1e0f
authored
Feb 27, 2003
by
Duncan Sands
Committed by
Greg Kroah-Hartman
Feb 27, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB speedtouch: be firm when disconnected
Just say -ENODEV
parent
10a2657b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
drivers/usb/misc/speedtouch.c
drivers/usb/misc/speedtouch.c
+6
-5
No files found.
drivers/usb/misc/speedtouch.c
View file @
533d1e0f
...
...
@@ -648,9 +648,9 @@ static int udsl_atm_send (struct atm_vcc *vcc, struct sk_buff *skb)
dbg
(
"udsl_atm_send called (skb 0x%p, len %u)"
,
skb
,
skb
->
len
);
if
(
!
instance
)
{
dbg
(
"NULL
instance
!"
);
return
-
E
INVAL
;
if
(
!
instance
||
!
instance
->
usb_dev
)
{
dbg
(
"NULL
data
!"
);
return
-
E
NODEV
;
}
if
(
!
instance
->
firmware_loaded
)
...
...
@@ -701,6 +701,7 @@ static void udsl_atm_dev_close (struct atm_dev *dev)
tasklet_kill
(
&
instance
->
send_tasklet
);
dbg
(
"udsl_atm_dev_close: freeing instance"
);
kfree
(
instance
);
dev
->
dev_data
=
NULL
;
}
...
...
@@ -776,8 +777,8 @@ static int udsl_atm_open (struct atm_vcc *vcc, short vpi, int vci)
dbg
(
"udsl_atm_open called"
);
if
(
!
instance
)
{
dbg
(
"NULL
instance
!"
);
if
(
!
instance
||
!
instance
->
usb_dev
)
{
dbg
(
"NULL
data
!"
);
return
-
ENODEV
;
}
...
...
Write
Preview
Markdown
is supported
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