Drop incoming messages when the link is flagged as inactive.
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
                return; /* short message */
        if (llc->raw.hdr.length != sizeof(*llc))
                return; /* invalid message */
+       if (link->state == SMC_LNK_INACTIVE)
+               return; /* link not active, drop msg */
 
        switch (llc->raw.hdr.common.type) {
        case SMC_LLC_TEST_LINK: