net: core: Check interface when receiving a packet
net: core: Check interface when receiving a packet

Although very unlikely, make sure that if the net_recv_data() is
called with NULL network interface or packet, we recover that and
return error to the caller.

Signed-off-by: Jukka Rissanen <f9f077d1da4c7aa947f9864fa5a28c3588f6a45d@linux.intel.com>

Vudentz/zephyr,ldts/zephyr,kraj/zephyr,ldts/zephyr,nashif/zephyr,galak/zephyr,kraj/zephyr,zephyriot/zephyr,nashif/zephyr,Vudentz/zephyr,zephyriot/zephyr,mbolivar/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,mbolivar/zephyr,finikorg/zephyr,finikorg/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,galak/zephyr,zephyriot/zephyr,mbolivar/zephyr,kraj/zephyr,galak/zephyr,finikorg/zephyr,mbolivar/zephyr,finikorg/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,ldts/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,zephyrproject-rtos/zephyr,explora26/zephyr,zephyriot/zephyr,kraj/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,ldts/zephyr,nashif/zephyr,explora26/zephyr,punitvara/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,Vudentz/zephyr,nashif/zephyr,mbolivar/zephyr,punitvara/zephyr,zephyrproject-rtos/zephyr,explora26/zephyr,kraj/zephyr,galak/zephyr,punitvara/zephyr,galak/zephyr,ldts/zephyr,finikorg/zephyr,zephyriot/zephyr