Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
53f374e7
Commit
53f374e7
authored
Apr 02, 2007
by
Stefan Richter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieee1394: eth1394: hard_start_xmit is called in atomic context
Signed-off-by:
Stefan Richter
<
stefanr@s5r6.in-berlin.de
>
parent
09939871
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
drivers/ieee1394/eth1394.c
drivers/ieee1394/eth1394.c
+2
-3
No files found.
drivers/ieee1394/eth1394.c
View file @
53f374e7
...
...
@@ -1521,7 +1521,6 @@ static void ether1394_complete_cb(void *__ptask)
/* Transmit a packet (called by kernel) */
static
int
ether1394_tx
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
)
{
gfp_t
kmflags
=
in_interrupt
()
?
GFP_ATOMIC
:
GFP_KERNEL
;
struct
eth1394hdr
*
eth
;
struct
eth1394_priv
*
priv
=
netdev_priv
(
dev
);
__be16
proto
;
...
...
@@ -1537,7 +1536,7 @@ static int ether1394_tx(struct sk_buff *skb, struct net_device *dev)
struct
eth1394_node_ref
*
node
;
struct
eth1394_node_info
*
node_info
=
NULL
;
ptask
=
kmem_cache_alloc
(
packet_task_cache
,
kmflags
);
ptask
=
kmem_cache_alloc
(
packet_task_cache
,
GFP_ATOMIC
);
if
(
ptask
==
NULL
)
{
ret
=
-
ENOMEM
;
goto
fail
;
...
...
@@ -1553,7 +1552,7 @@ static int ether1394_tx(struct sk_buff *skb, struct net_device *dev)
}
#endif
skb
=
skb_share_check
(
skb
,
kmflags
);
skb
=
skb_share_check
(
skb
,
GFP_ATOMIC
);
if
(
!
skb
)
{
ret
=
-
ENOMEM
;
goto
fail
;
...
...
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