[PATCH 6.1 119/131] counter: chrdev: fix getting array extensions