On Tue, 2017-10-24 at 15:42 +0000, Ruhl, Michael J wrote: > > > have the same issue. Specific index validation is needed, and > > > should probably > > > > be > > > addressed with a different patch. > > > > .doit exists for RDMA_NL_LS and for other .dumpit exists, so no > > actual > > check is needed. > > > > if you want to be on the safe side, please extend is_nl_valid(). > > IMHO, > > it will keep code cleaner, the checks in one localized place and > > execution > > is not mixed with the validity checks. > > Leon, > > I do not disagree with you on this. My patch is to fix the Oops, and > make > sure it can't happen with the current code. > > Extending is_nl_valid() to be more complete seems to be out of scope > for > the current issue of making the Oops go away. > > I can probably work on is_nl_valid(), but I will need much more time > to make sure > that it is correct, and don't feel that I can get it done with in the > appropriate > time frame (i.e. sometime this week). I agree with Michael that tweaking this code to be optimal versus plainly failsafe is a patch for another day. I've taken this one. Thanks Michael. -- Doug Ledford <dledford@xxxxxxxxxx> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html