[PATCH kernel-4.19 7/9] share_pool: Add parameter checking