[PATCH 6.5 168/191] counter: chrdev: fix getting array extensions