Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matisse
android_kernel_samsung_matisse
Commits
92c4d9bd
Commit
92c4d9bd
authored
16 years ago
by
David Vrabel
Browse files
Options
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
z
alloc
(
mmcies
*
sizeof
(
wusbhc
->
mmcie
[
0
]),
GFP_KERNEL
);
wusbhc
->
mmcie
=
k
c
alloc
(
mmcies
,
sizeof
(
wusbhc
->
mmcie
[
0
]),
GFP_KERNEL
);
if
(
wusbhc
->
mmcie
==
NULL
)
return
-
ENOMEM
;
mutex_init
(
&
wusbhc
->
mmcie_mutex
);
...
...
This diff is collapsed.
Click to expand it.
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
z
alloc
(
xfer
->
segs
*
sizeof
(
xfer
->
seg
[
0
]),
GFP_ATOMIC
);
xfer
->
seg
=
k
c
alloc
(
xfer
->
segs
,
sizeof
(
xfer
->
seg
[
0
]),
GFP_ATOMIC
);
if
(
xfer
->
seg
==
NULL
)
goto
error_segs_kzalloc
;
buf_itr
=
0
;
...
...
This diff is collapsed.
Click to expand it.
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
c
alloc
(
1
,
sizeof
(
*
uwb_dev
),
GFP_KERNEL
);
uwb_dev
=
k
z
alloc
(
sizeof
(
struct
uwb_dev
),
GFP_KERNEL
);
if
(
uwb_dev
==
NULL
)
{
dev_err
(
dev
,
"new device %s: Cannot allocate memory
\n
"
,
macbuf
);
...
...
This diff is collapsed.
Click to expand it.
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