| To: | Patrick McHardy <kaber@xxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH PKT_SCHED 17/17]: Disable broken override bits in pedit action |
| From: | jamal <hadi@xxxxxxxxxx> |
| Date: | 30 Dec 2004 08:17:14 -0500 |
| Cc: | Maillist netdev <netdev@xxxxxxxxxxx> |
| In-reply-to: | <41D378FF.3080205@trash.net> |
| Organization: | jamalopolous |
| References: | <41D378FF.3080205@trash.net> |
| Reply-to: | hadi@xxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Wed, 2004-12-29 at 22:41, Patrick McHardy wrote:
> Disable broken override bits in pedit action. It misses
> locking and needs to allocate new memory if nkeys increases.
> Also disable it for now.
>
There are a couple of these that you have (ipt being other). Could you
just add a check for size before returning -EOPNOTSUPP?
Example:
if (ovr)
if (p->nkeys != parm->nkeys)
return -EOPNOTSUPP;
This way if they are of the same size then things should work as is
and my testcases dont break. Now if you feel more gracious, go ahead and
fix them ;->
> ret = -EEXIST;
> if (ovr) {
> + /* FIXME: no locking, larger memory area might be required */
> + return -EOPNOTSUPP;
> ret = 0;
> override:
> p->flags = parm->flags;
cheers,
jamal
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 9/9] PKT_SCHED: Actions are now available for all classifiers, Thomas Graf |
|---|---|
| Next by Date: | Re: [PATCH PKT_SCHED 17/17]: Disable broken override bits in pedit action, Patrick McHardy |
| Previous by Thread: | [PATCH PKT_SCHED 17/17]: Disable broken override bits in pedit action, Patrick McHardy |
| Next by Thread: | Re: [PATCH PKT_SCHED 17/17]: Disable broken override bits in pedit action, Patrick McHardy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |