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
Kirill Smelkov
linux
Commits
92c4d9bd
Commit
92c4d9bd
authored
Oct 15, 2008
by
David Vrabel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uwb: use kcalloc where appropriate
Signed-off-by:
David Vrabel
<
david.vrabel@csr.com
>
parent
45c16cd9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
drivers/usb/wusbcore/mmc.c
drivers/usb/wusbcore/mmc.c
+1
-1
drivers/usb/wusbcore/wa-xfer.c
drivers/usb/wusbcore/wa-xfer.c
+1
-1
drivers/uwb/lc-dev.c
drivers/uwb/lc-dev.c
+1
-1
No files found.
drivers/usb/wusbcore/mmc.c
View file @
92c4d9bd
...
...
@@ -43,7 +43,7 @@
int
wusbhc_mmcie_create
(
struct
wusbhc
*
wusbhc
)
{
u8
mmcies
=
wusbhc
->
mmcies_max
;
wusbhc
->
mmcie
=
k
zalloc
(
mmcies
*
sizeof
(
wusbhc
->
mmcie
[
0
]),
GFP_KERNEL
);
wusbhc
->
mmcie
=
k
calloc
(
mmcies
,
sizeof
(
wusbhc
->
mmcie
[
0
]),
GFP_KERNEL
);
if
(
wusbhc
->
mmcie
==
NULL
)
return
-
ENOMEM
;
mutex_init
(
&
wusbhc
->
mmcie_mutex
);
...
...
drivers/usb/wusbcore/wa-xfer.c
View file @
92c4d9bd
...
...
@@ -674,7 +674,7 @@ static int __wa_xfer_setup_segs(struct wa_xfer *xfer, size_t xfer_hdr_size)
size_t
buf_itr
,
buf_size
,
buf_itr_size
;
result
=
-
ENOMEM
;
xfer
->
seg
=
k
zalloc
(
xfer
->
segs
*
sizeof
(
xfer
->
seg
[
0
]),
GFP_ATOMIC
);
xfer
->
seg
=
k
calloc
(
xfer
->
segs
,
sizeof
(
xfer
->
seg
[
0
]),
GFP_ATOMIC
);
if
(
xfer
->
seg
==
NULL
)
goto
error_segs_kzalloc
;
buf_itr
=
0
;
...
...
drivers/uwb/lc-dev.c
View file @
92c4d9bd
...
...
@@ -443,7 +443,7 @@ void uwbd_dev_onair(struct uwb_rc *rc, struct uwb_beca_e *bce)
uwb_mac_addr_print
(
macbuf
,
sizeof
(
macbuf
),
bce
->
mac_addr
);
uwb_dev_addr_print
(
devbuf
,
sizeof
(
devbuf
),
&
bce
->
dev_addr
);
uwb_dev
=
k
calloc
(
1
,
sizeof
(
*
uwb_dev
),
GFP_KERNEL
);
uwb_dev
=
k
zalloc
(
sizeof
(
struct
uwb_dev
),
GFP_KERNEL
);
if
(
uwb_dev
==
NULL
)
{
dev_err
(
dev
,
"new device %s: Cannot allocate memory
\n
"
,
macbuf
);
...
...
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