commit | aba258b73101670c06b1dd700e500ed0a3fa0e8e | [log] [tgz] |
---|---|---|
author | Christian Gromm <christian.gromm@microchip.com> | Tue May 08 11:45:06 2018 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue May 08 13:41:50 2018 +0200 |
tree | e404148985fa552be5efa4ffd2dc5c43aa295af6 | |
parent | 8463d9fab6e25a77b640caada74af29f936a8ea4 [diff] |
staging: most: cdev: fix chrdev_region leak The function unregister_chrdev_region is called with a different counter as the alloc_chrdev_region. To fix this, this patch introduces the constant CHRDEV_REGION_SIZE that is used in both functions. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>