Am Freitag 29 August 2008 01:00:31 schrieb greg@kroah.com:
> +static ssize_t store_flag(struct device *dev, struct device_attribute *attr,
Needs error handling
> + usbip_debug_flag = flag;
Such functions better print into a buffer, handed over in one go.
Otherwise you can get results
-second message-
like this
> +/* there may be more cases to tweak the flags. */
There's no need to do this conditionally.
> +/* must free buffer */
Are you sure you cannot badly recourse here?
Regards
Oliver
--