I suggest to move the addition of such input parameter validation to a separate update step.
Um...The 'src_nents' will be used as a loop condition, so validate it here is needed ?
Would you prefer to add such checking as the first update in another small patch series?
Regards, Markus