[ Upstream commit 2e4b02fad094976763af08fec2c620f4f8edd9ae ]
The kref_put() function will call nport->release if the refcount drops to
zero. The nport->release release function is _efc_nport_free() which frees
"nport". But then we dereference "nport" on the next line which is a use
after free. Re-order these lines to avoid the use after free.
Fixes:
|
||
|---|---|---|
| .. | ||
| efct | ||
| include | ||
| libefc | ||
| libefc_sli | ||
| Kconfig | ||
| Makefile | ||