[svn-commits] sruffell: linux/trunk r7155 - /linux/trunk/drivers/dahdi/dahdi-base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Sep 21 10:24:42 CDT 2009


Author: sruffell
Date: Mon Sep 21 10:24:36 2009
New Revision: 7155

URL: http://svn.asterisk.org/svn-view/dahdi?view=rev&rev=7155
Log:
dahdi-base: dahdi_ioctl_[get|set]gains should return the res value.

In function dahdi_ioctl_getgains() and dahdi_ioctl_setgains() return value
assigned to res variable, but these function always return 0 which is an
error.

(closes issue #15916.)
Patch by: ys

Modified:
    linux/trunk/drivers/dahdi/dahdi-base.c

Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svn.asterisk.org/svn-view/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=7155&r1=7154&r2=7155
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Mon Sep 21 10:24:36 2009
@@ -3556,7 +3556,7 @@
 cleanup:
 
 	kfree(gain);
-	return 0;
+	return res;
 }
 
 static int dahdi_ioctl_setgains(struct inode *node, struct file *file,
@@ -3633,7 +3633,7 @@
 cleanup:
 
 	kfree(gain);
-	return 0;
+	return res;
 }
 
 static int dahdi_common_ioctl(struct inode *node, struct file *file, unsigned int cmd, unsigned long data, int unit)




More information about the svn-commits mailing list