The C Source, Patches and (shudder!) Bugs
Post Reply
lkundrak
Posts: 23
Joined: Wed Jun 22, 2016 2:17 pm

don't return a value from stack

Post by lkundrak » Thu Jul 21, 2016 6:55 pm

Please see the attached patch.

Thank you
Lubo
Attachments
0001-usb_modeswitch-don-t-return-a-value-from-stack.patch
Suggested fix
(1.05 KiB) Downloaded 209 times

lkundrak
Posts: 23
Joined: Wed Jun 22, 2016 2:17 pm

Re: don't return a value from stack

Post by lkundrak » Wed Sep 07, 2016 8:13 pm

Ping? This is probably quite serious; at least when built in Fedora the behavior of usb_modeswitch without the patch was totally unpredictable (did the job in ~50% of cases).
Could be the compiler flags we use, but perhaps that happens for other distros too?

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Re: don't return a value from stack

Post by Josh » Thu Sep 08, 2016 8:13 am

There were no other reports about such a problem on other distros, AFAIK. Is there an official Fedora bug report?

I will certainly include the patch with the next program package update.

lkundrak
Posts: 23
Joined: Wed Jun 22, 2016 2:17 pm

Re: don't return a value from stack

Post by lkundrak » Thu Sep 08, 2016 12:14 pm

Josh wrote:There were no other reports about such a problem on other distros, AFAIK. Is there an official Fedora bug report?
Not really. I've stumbled upon this myself when checking things work well with my modem collection after updating the package. The users don't tend to include too much details in the bug reports -- there's a handful of "my modem won't work" bug reports filed against ModemManager that lack good explanation. I merely suspected this could be related.

Post Reply