D28535: [KIO-MTP] Fix null pointer dereference
Fabian Vogt
noreply at phabricator.kde.org
Fri Apr 3 13:43:03 BST 2020
fvogt added a comment.
In D28535#640682 <https://phabricator.kde.org/D28535#640682>, @feverfew wrote:
> In D28535#640674 <https://phabricator.kde.org/D28535#640674>, @fvogt wrote:
>
> > What you're suggesting is to change `MTPDevice::getDevice` to return the old device if reopening fails - but reopening without releasing might not work.
>
>
> This seems to be a robust solution IMO, why do you suspect this might not work?
Because there can only be a single libusb session per device. So you have to release the old one before opening again.
REPOSITORY
R320 KIO Extras
REVISION DETAIL
https://phabricator.kde.org/D28535
To: feverfew, akrutzler, dfaure, elvisangelaccio
Cc: anthonyfieroni, kde-frameworks-devel, fvogt, kfm-devel, ngraham, nikolaik, pberestov, iasensio, fprice, LeGast00n, cblack, fbampaloukas, alexde, GB_2, Codezela, feverfew, meven, michaelh, spoorun, navarromorales, firef, andrebarros, bruns, emmanuelp, mikesomov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200403/d2e1ff8d/attachment.html>
More information about the Kde-frameworks-devel
mailing list