commit | f8c5f6978087b7797e701b9d6778018f145cf3dc | [log] [tgz] |
---|---|---|
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | Thu Jul 27 14:35:17 2017 +0300 |
committer | Jukka Rissanen <jukka.rissanen@linux.intel.com> | Thu Jul 27 15:19:53 2017 +0300 |
tree | 526b5bcaea2f0dc520e6401f3836a2721a6254a2 | |
parent | 977537107e69ed01f9e8a36f3d7f9b4431791a62 [diff] |
net: shell: Do not access NULL pointer if interface is down Normally network interface is always UP, but Bluetooth interfaces are down until connected. So if this is the case, then check the interface status before trying to access variables that are NULL. This was seen with "net iface" shell command when BT was enabled. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>