diff options
author | markd <markd@pkgsrc.org> | 2007-05-23 12:38:23 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2007-05-23 12:38:23 +0000 |
commit | d4e09871d1c343210311d51dc96841e0fa2d31c5 (patch) | |
tree | 88a50d256380afaffcda1a8bc75575c8621e71ea /sysutils/k3b/patches | |
parent | 4712b443f373c54261032cb969696f0a29ac43fe (diff) | |
download | pkgsrc-d4e09871d1c343210311d51dc96841e0fa2d31c5.tar.gz |
Fix SEGV on startup. Bump PKGREVISION.
Diffstat (limited to 'sysutils/k3b/patches')
-rw-r--r-- | sysutils/k3b/patches/patch-ad | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/k3b/patches/patch-ad b/sysutils/k3b/patches/patch-ad new file mode 100644 index 00000000000..16ecbe3abc5 --- /dev/null +++ b/sysutils/k3b/patches/patch-ad @@ -0,0 +1,20 @@ +$NetBSD: patch-ad,v 1.3 2007/05/23 12:38:23 markd Exp $ + +--- libk3bdevice/k3bscsicommand_netbsd.cpp.orig 2007-05-22 12:15:54.000000000 +1200 ++++ libk3bdevice/k3bscsicommand_netbsd.cpp +@@ -83,9 +83,13 @@ int K3bDevice::ScsiCommand::transport( T + break; + } + +- m_device->usageLock(); ++ if ( m_device ) { ++ m_device->usageLock(); ++ } + int i = ::ioctl( m_deviceHandle, SCIOCCOMMAND, &d->cmd ); +- m_device->usageUnlock(); ++ if ( m_device ) { ++ m_device->usageUnlock(); ++ } + + if( needToClose ) + m_device->close(); |