summaryrefslogtreecommitdiff
path: root/sysutils/k3b/patches
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2007-05-23 12:38:23 +0000
committermarkd <markd@pkgsrc.org>2007-05-23 12:38:23 +0000
commitd4e09871d1c343210311d51dc96841e0fa2d31c5 (patch)
tree88a50d256380afaffcda1a8bc75575c8621e71ea /sysutils/k3b/patches
parent4712b443f373c54261032cb969696f0a29ac43fe (diff)
downloadpkgsrc-d4e09871d1c343210311d51dc96841e0fa2d31c5.tar.gz
Fix SEGV on startup. Bump PKGREVISION.
Diffstat (limited to 'sysutils/k3b/patches')
-rw-r--r--sysutils/k3b/patches/patch-ad20
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();