[dpdk-dev] [PATCH] dev: don't try to rollback a device attach that failed
Thomas Monjalon
thomas at monjalon.net
Sun Nov 25 13:10:07 CET 2018
21/11/2018 20:05, Darek Stojaczyk:
> If a device fails to attach before it's plugged,
> the subsequent rollback will still try to detach it,
> causing a segfault. Unplugging a device that wasn't
> plugged isn't really supported, so this patch adds
> an extra error check to prevent that from happening.
>
> While here, fix this also for normal (non-rollback)
> detach, which could also theoretically segfault on
> non-plugged device.
>
> Fixes: 244d5130719c ("eal: enable hotplug on multi-process")
> Cc: qi.z.zhang at intel.com
>
> Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk at intel.com>
Applied, thanks
More information about the dev
mailing list