Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

add experimental USB Host support#2

Open
sudden6 wants to merge 1 commit into
dlaprell:expfrom
sudden6:exp
Open

add experimental USB Host support#2
sudden6 wants to merge 1 commit into
dlaprell:expfrom
sudden6:exp

Conversation

@sudden6
Copy link
Copy Markdown

@sudden6 sudden6 commented Jun 9, 2014

Known bugs: probably disables automatic fast charging, probably unstable
The .config file with the modules is named sudden_defconfig

Known bugs: probably disables automatic fast charging, probably unstable
rx78gp01 pushed a commit to rx78gp01/kowalski that referenced this pull request Aug 20, 2019
commit 1f9c6e1bc1ba5f8a10fcd6e99d170954d7c6d382 upstream.

There were several bugs here.

1)  The done label was in the wrong place so we didn't copy any
    information out when there was no command given.

2)  We were using PAGE_SIZE as the size of the buffer instead of
    "PAGE_SIZE - pos".

3)  snprintf() returns the number of characters that would have been
    printed if there were enough space.  If there was not enough space
    (and we had fixed the memory corruption bug dlaprell#2) then it would result
    in an information leak when we do simple_read_from_buffer().  I've
    changed it to use scnprintf() instead.

I also removed the initialization at the start of the function, because
I thought it made the code a little more clear.

Fixes: 5e6e3a9 ('wireless: mwifiex: initial commit for Marvell mwifiex driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants