[asterisk-dev] [dahdi-commits] kmoore: linux/trunk r9905 - in /linux/trunk: drivers/dahdi/ include/dahdi/
Shaun Ruffell
sruffell at digium.com
Fri Apr 15 11:28:33 CDT 2011
On 04/15/2011 11:16 AM, SVN commits to the DAHDI project wrote:
> Author: kmoore
> Date: Fri Apr 15 11:16:19 2011
> New Revision: 9905
...
> + case DAHDI_BUFFER_EVENTS:
> + if (get_user(j, (int __user *)data) != -EFAULT && j)
> + set_bit(DAHDI_FLAGBIT_BUFEVENTS, &chan->flags);
> + else
> + clear_bit(DAHDI_FLAGBIT_BUFEVENTS, &chan->flags);
> +
> + break;
Hmm....if the read from user space fails we assume that the user wanted to set
the buffer events?
I do not think that is best. I would prefer to see it left unchanged. I should
have been more clear when I looked at the initial version of this patch.
--
Shaun Ruffell
Digium, Inc. | Linux Kernel Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org
More information about the asterisk-dev
mailing list