Re: [dpdk-dev] [PATCH] dev: don't try to rollback a device attach that failed

2018-11-25 Thread Thomas Monjalon
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 happeni

[dpdk-dev] [PATCH] dev: don't try to rollback a device attach that failed

2018-11-21 Thread 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 (no