Re: [patch] mptfusion: don't allow negative bytes in kbuf_alloc_2_sgl()

2015-11-11 Thread Martin K. Petersen
> "Dan" == Dan Carpenter writes: Dan> There is a static checker warning here because "bytes" is Dan> controlled by the user and we cap the upper bound with min() but Dan> allow negatives. Negative bytes will result in some nasty warning Dan> messages but are not

[patch] mptfusion: don't allow negative bytes in kbuf_alloc_2_sgl()

2015-11-10 Thread Dan Carpenter
There is a static checker warning here because "bytes" is controlled by the user and we cap the upper bound with min() but allow negatives. Negative bytes will result in some nasty warning messages but are not super harmful. Anyway, no one needs negative bytes so let's just check for it and