net: ethernet: realtek: fix pgdrv remove for r8168 driver
authorMartin Gao <marting@nvidia.com>
Tue, 3 May 2016 01:03:12 +0000 (18:03 -0700)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 19 May 2016 02:57:09 +0000 (19:57 -0700)
commit84aad29a54d0e074a6ba3c769fe37fdd146df3ac
tree65aeb7827162bc60cbaa9aa829f0b65682db1457
parent5481bda9a0410b7f978fa36ff420836a0c4fbc42
net: ethernet: realtek: fix pgdrv remove for r8168 driver

- in r8168 realtek ethernet driver, we added pgtool functionality, and
pgdrv_remove wasn't checking for null pointer, and thus caused null pointer
exception.

Bug 200196087

Change-Id: Ib170fc4b1d3ef496d75def62924adf119f068324
Signed-off-by: Martin Gao <marting@nvidia.com>
(cherry picked from commit fa3352ceffe25cc86cf25ebc86e6d519bb7b6316)
Reviewed-on: http://git-master/r/1146186
GVS: Gerrit_Virtual_Submit
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
drivers/net/ethernet/realtek/pgdrv.c
drivers/net/ethernet/realtek/r8168_n.c [changed mode: 0755->0644]