SVNews r330882

NOTE: This service is experimental and subject to change! Use at your own risk!

2018-03-13 21:42:38 - r330882 by jhb (John Baldwin)

Complete list of files affected by revision r330882:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/dev/cxgbe/tom/t4_ddp.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/cxgbe/tom/t4_tom.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/cxgbe/tom/t4_tom.h  

Commit message:

Simplify error handling in t4_tom.ko module loading.

- Change t4_ddp_mod_load() to return void instead of always returning
  success. This avoids having to pretend to have proper support for
  unloading when only part of t4_tom_mod_load() has run.
- If t4_register_uld() fails, don't invoke t4_tom_mod_unload() directly.
  The module handling code in the kernel invokes MOD_UNLOAD on a module
  whose MOD_LOAD fails with an error already.

Reviewed by: np (part of a larger patch)
MFC after: 1 month
Sponsored by: Chelsio Communications


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 29 ms, 3 files printed. Current time is 2018-03-18 09:32:21. All times are in UTC/GMT.