cxgb3: fix oops on module removal
Heiner Kallweit authored
[ Upstream commit be27a47a ]

When removing the driver module w/o bringing an interface up before
the error below occurs. Reason seems to be that cancel_work_sync() is
called in t3_sge_stop() for a queue that hasn't been initialized yet.

[10085.941785] ------------[ cut here ]------------
[10085.941799] WARNING: CPU: 1 PID: 5850 at kernel/workqueue.c:3074 __flush_work+0x3ff/0x480
[10085.941819] Modules linked in: vfat snd_hda_codec_hdmi fat snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio led_class ee1004 iTCO_
wdt intel_tcc_cooling x86_pkg_temp_thermal coretemp aesni_intel crypto_simd cryptd snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core r
8169 snd_pcm realtek mdio_devres snd_timer snd i2c_i801 i2c_smbus libphy i915 i2c_algo_bit cxgb3(-) intel_gtt ttm mdio drm_kms_helper mei_me s
yscopyarea sysfillrect sysimgblt mei fb_sys_fops acpi_pad sch_fq_codel crypto_user drm efivarfs ext4 mbcache jbd2 crc32c_intel
[10085.941944]...
45f8ba56
Name Last commit Last update
Documentation dt-bindings: mtd: gpmc: Fix the ECC bytes vs. OOB bytes equation
LICENSES LICENSES/dual/CC-BY-4.0: Git rid of "smart quotes"
arch ARC: export clear_user_page() for modules
block block, bfq: honor already-setup queue merges
certs certs: Trigger creation of RSA module signing key if it's not an RSA key
crypto crypto: ecc - handle unaligned input buffer in ecc_swap_digits
drivers cxgb3: fix oops on module removal
fs io_uring: retry in case of short read on block device
include fq_codel: reject silly quantum parameters
init init: Suppress wrong warning for bootconfig cmdline parameter
ipc Merge branch 'akpm' (patches from Andrew)
kernel tracing/boot: Fix a hist trigger dependency for boot time tracing
lib lib/test_stackinit: Fix static initializer test
mm mm/mempolicy: fix a race between offset_il_node and mpol_rebind_task
net ip6_gre: Revert "ip6_gre: add validation for csum_start"
samples samples: pktgen: fix to print when terminated normally
scripts gen_compile_commands: fix missing 'sys' package
security Smack: Fix wrong semantics in smk_access_entry()
sound ASoC: soc-pcm: protect BE dailink state changes in trigger
tools selftests: mptcp: clean tmp files in simult_flows
usr .gitignore: prefix local generated files with a slash
virt KVM: Do not leak memory for duplicate debugfs directories
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.