Bug 10774 - Device 'virtio-pci' does not have a release() function
Summary: Device 'virtio-pci' does not have a release() function
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 low
Assignee: Anthony Liguori
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-22 05:14 UTC by Roland Kletzing
Modified: 2010-01-19 18:57 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.25.3
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Roland Kletzing 2008-05-22 05:14:20 UTC
Latest working kernel version: - 
Earliest failing kernel version: iirc, i have already seen this with 2.6.25rc kernels
Distribution: opensuse 11 beta
Hardware Environment: x86
Software Environment: 

Problem Description:

dmesg:

Device 'virtio-pci' does not have a release() function, it is broken and must be fixed.
------------[ cut here ]------------
WARNING: at drivers/base/core.c:119 device_release+0x58/0x5c()
Modules linked in: virtio_pci(-) fcrypt pcbc crypto_blkcipher sctp libcrc32c 9pnet_fd 9pnet ts_kmp decnet dccp_ipv6 dccp_ipv4 dccp snd_via82xx gameport snd_ac97_codec ac97_bus snd_mpu401_uart snd_rawmidi snd_seq_dummy snd_seq snd_seq_device sunrpc parkbd sg sr_mod cdrom eni suni zatm uPD98402 atm loop brd lm70 dvb_usb_af9005_remote ovcamchip ov7670 v4l2_common 8250_exar_st16c554 8250_fourport 8250_accent 8250_hub6 8250_boca capifs ppdev parport_pc trm290 sc1200 slc90e66 aec62xx hpt366 cs5520 serverworks rz1000 pdc202xx_old it8213 cmd640 alim15x3 cs5535 via82cxxx ide_pci_generic atiixp amd74xx cmd64x jmicron cs5530 triflex hpt34x ns87415 pdc202xx_new it821x cy82c693 sis5513 piix opti621 siimage ide_generic ide_core ip6t_LOG xt_tcpudp xt_pkttype ipt_LOG xt_limit binfmt_misc af_packet ip6t_REJECT nf_conntrack_ipv6 ipt_REJECT xt_state iptable_filter nf_conntrack_ipv4 nf_conntrack ip_tables ip6table_filter ip6_tables x_tables ipv6 fuse snd_pcm snd_timer snd_page_alloc via_agp e100 parport agpgart mii snd i2c_core soundcore ext3 jbd mbcache sd_mod pata_via libata scsi_mod dock [last unloaded: cfg80211]
Pid: 13745, comm: modprobe Tainted: P        N 2.6.25.3-2-default #1
 [<c01071d9>] dump_trace+0x63/0x227
 [<c0107c8a>] show_trace+0x15/0x29
 [<c02e6e48>] _etext+0x5b/0x65
 [<c0125021>] warn_on_slowpath+0x41/0x67
 [<c024abea>] device_release+0x58/0x5c
 [<c01de888>] kobject_release+0x40/0x50
 [<c01df359>] kref_put+0x39/0x44
 [<c01de7cb>] kobject_put+0x14/0x16
 [<c024a6a9>] put_device+0xf/0x11
 [<c024b11c>] device_unregister+0x12/0x15
 [<e08313b1>] virtio_pci_exit+0xd/0x19 [virtio_pci]
 [<c01445a6>] sys_delete_module+0x1a8/0x1e6
 [<c01059e4>] sysenter_past_esp+0x6d/0xa9
 [<ffffe430>] 0xffffe430
 =======================
---[ end trace cada686c77a474e3 ]---



Steps to reproduce:
modprobe virtio-pci, modprobe -r virtio-pci
Comment 1 Roland Kletzing 2008-10-26 12:19:35 UTC
also applies to 2.6.27
Comment 2 Roland Kletzing 2010-01-19 18:57:01 UTC
i`m curious why there is no reference to the fix here, nor is there a reference from the git commit to this bugreport.

ok, adding the reference myself:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=63d12556703f17817a46e140704360b29b851bad

Note You need to log in before you can comment on or make changes to this bug.