]> git.baikalelectronics.ru Git - kernel.git/commit
pch_gbe: minor: report the actual error on MTU change
authorVeaceslav Falico <vfalico@redhat.com>
Tue, 16 Apr 2013 05:28:12 +0000 (05:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Apr 2013 20:43:35 +0000 (16:43 -0400)
commit674b58e10b6fbfa4fe34b1e5691400acc1d0323c
tree70f08570ba9e957bbb870a36221872fd86ec964f
parentb67ead8be6b004c7dd97305a497710d49b492ee2
pch_gbe: minor: report the actual error on MTU change

If we can't _up() after changing the MTU, report the actual error instead
of -ENOMEM. It can be really misleading cause pch_gbe is usually used in
scenarios where the memory amount is really small, and thus hiding the
real cause.

Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c