[PATCH] evh_bytechan: fix out of bounds accesses
    Timur Tabi 
    timur at kernel.org
       
    Thu Jan 16 00:25:45 AEDT 2020
    
    
  
On 1/14/20 12:31 AM, Stephen Rothwell wrote:
> +/**
> + * ev_byte_channel_send - send characters to a byte stream
> + * @handle: byte stream handle
> + * @count: (input) num of chars to send, (output) num chars sent
> + * @bp: pointer to chars to send
> + *
> + * Returns 0 for success, or an error code.
> + */
> +static unsigned int ev_byte_channel_send(unsigned int handle,
> +	unsigned int *count, const char *bp)
Well, now you've moved this into the .c file and it is no longer 
available to other callers.  Anything wrong with keeping it in the .h file?
    
    
More information about the Linuxppc-dev
mailing list