ath5k: add missing dma_map_error call
Trivial patch to address this trace. Now calls dma_mapping_error and
return -ENOSPC if a problem found.
WARNING: at lib/dma-debug.c:933 check_unmap+0x47b/0x960()
Hardware name: Aspire 5515
ath5k 0000:02:00.0: DMA-API: device driver failed to check map
error[device address=0x00000000874fcd42] [size=45 bytes] [mapped as
single]
Modules linked in: bnep bluetooth ebtable_filter ebtables
ip6table_filter ip6_tables be2iscsi iscsi_boot_sysfs bnx2i cnic uio
cxgb4i cxgb4 cxgb3i cxgb3 mdio libcxgbi ib_iser rdma_cm ib_addr iw_cm
ib_cm ib_sa ib_mad ib_core iscsi_tcp libiscsi_tcp libiscsi
scsi_transport_iscsi arc4 snd_hda_codec_realtek snd_hda_intel
snd_hda_codec snd_hwdep snd_seq snd_seq_device ath5k ath snd_pcm
sparse_keymap snd_page_alloc mac80211 snd_timer sp5100_tco snd edac_core
k8temp soundcore edac_mce_amd i2c_piix4 cfg80211 rfkill shpchp vhost_net
tun macvtap macvlan kvm_amd kvm uinput dm_crypt ata_generic pata_acpi
radeon i2c_algo_bit pata_atiixp drm_kms_helper ttm drm r8169 mii
i2c_core wmi video sunrpc
Pid: 820, comm: firewalld Not tainted 3.9.0-0.rc3.git1.4.fc19.x86_64 #1
Call Trace:
<IRQ> [<
ffffffff81068df0>] warn_slowpath_common+0x70/0xa0
[<
ffffffff81068e6c>] warn_slowpath_fmt+0x4c/0x50
[<
ffffffff8137ebeb>] check_unmap+0x47b/0x960
[<
ffffffff81021cf5>] ? native_sched_clock+0x15/0x80
[<
ffffffff81021d69>] ? sched_clock+0x9/0x10
[<
ffffffff8137f12f>] debug_dma_unmap_page+0x5f/0x70
[<
ffffffffa048fa07>] ath5k_tasklet_tx+0x157/0x3f0 [ath5k]
[<
ffffffff810acc0d>] ? sched_clock_local+0x1d/0x80
[<
ffffffff81072aa6>] ? tasklet_action+0x56/0x210
[<
ffffffff81072ae7>] tasklet_action+0x97/0x210
[<
ffffffff8107343f>] __do_softirq+0xff/0x400
[<
ffffffff81073905>] irq_exit+0xb5/0xc0
[<
ffffffff81728916>] do_IRQ+0x56/0xc0
[<
ffffffff8171dc32>] common_interrupt+0x72/0x72
<EOI> [<
ffffffff811f1f81>] ? dput+0x111/0x310
[<
ffffffff811f1ea7>] ? dput+0x37/0x310
[<
ffffffff811e75e8>] link_path_walk+0x528/0x910
[<
ffffffff811ea624>] path_openat+0x94/0x530
[<
ffffffff811eb148>] do_filp_open+0x38/0x80
[<
ffffffff811e1dda>] open_exec+0x4a/0x130
[<
ffffffff81238be3>] load_elf_binary+0x7f3/0x18e0
[<
ffffffff81021d69>] ? sched_clock+0x9/0x10
[<
ffffffff810acc0d>] ? sched_clock_local+0x1d/0x80
[<
ffffffff810acd98>] ? sched_clock_cpu+0xa8/0x100
[<
ffffffff810d515d>] ? trace_hardirqs_off+0xd/0x10
[<
ffffffff810acedf>] ? local_clock+0x5f/0x70
[<
ffffffff810d5dbf>] ? lock_release_holdtime.part.28+0xf/0x190
[<
ffffffff812383f0>] ? elf_core_dump+0x1980/0x1980
[<
ffffffff811e1151>] search_binary_handler+0x1a1/0x4f0
[<
ffffffff811e1017>] ? search_binary_handler+0x67/0x4f0
[<
ffffffff811e28fc>] do_execve_common.isra.26+0x64c/0x710
[<
ffffffff811e23c2>] ? do_execve_common.isra.26+0x112/0x710
[<
ffffffff811e2cc6>] sys_execve+0x36/0x50
[<
ffffffff81727249>] stub_execve+0x69/0xa0
Signed-off-by: John Greene <jogreene@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>