diff options
author | Takashi Iwai | 2013-08-27 12:03:01 +0200 |
---|---|---|
committer | Takashi Iwai | 2013-08-28 08:22:16 +0200 |
commit | fb615499f0ad28ed74201c1cdfddf9e64e205424 (patch) | |
tree | 496be913d039044c15d683ab28408bb7e1e6ec94 /Documentation | |
parent | 2ca320e294a738c9134a71b5029de05edbfc7aad (diff) |
ALSA: opti9xx: Fix conflicting driver object name
The recent commit to delay the release of kobject triggered NULL
dereferences of opti9xx drivers. The cause is that all
snd-opti92x-ad1848, snd-opti92x-cs4231 and snd-opti93x drivers
register the PnP card driver with the very same name, and also
snd-opti92x-ad1848 and -cs4231 drivers register the ISA driver with
the same name, too. When these drivers are built in, quick
"register-release-and-re-register" actions occur, and this results in
Oops because of the same name is assigned to the kobject.
The fix is simply to assign individual names. As a bonus, by using
KBUILD_MODNAME, the patch reduces more lines than it adds.
The fix is based on the suggestion by Russell King.
Reported-and-tested-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions