drivers: stagging: nvshm: remove iobuf free when interface down
Martin Chabot [Wed, 13 Feb 2013 00:46:08 +0000 (16:46 -0800)]
This was causing a kernel panic because all iobuf refs are
invalid when interface is down.

Bug 1235843

Change-Id: I4185d41c833ed43dbff544f1e2230beb9b0132b2
Signed-off-by: Martin Chabot <mchabot@nvidia.com>
Reviewed-on: http://git-master/r/200279
(cherry picked from commit de33d8c22c708f69c991361ab9d309e4d1ec4c40)
Reviewed-on: http://git-master/r/204572
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Neil Patel <neilp@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

drivers/staging/nvshm/nvshm_tty.c

index 4f4aac4..9c7a3a8 100644 (file)
@@ -156,7 +156,6 @@ void nvshm_tty_rx_event(struct nvshm_channel *chan,
        int len, idx;
 
        if (!nvshm_interface_up()) {
-               nvshm_iobuf_free_cluster(iob);
                return;
        }