diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/idr.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1048,7 +1048,7 @@ void ida_remove(struct ida *ida, int id) | |||
| 1048 | __clear_bit(n, p->bitmap); | 1048 | __clear_bit(n, p->bitmap); |
| 1049 | 1049 | ||
| 1050 | bitmap = (void *)p->ary[n]; | 1050 | bitmap = (void *)p->ary[n]; |
| 1051 | if (!test_bit(offset, bitmap->bitmap)) | 1051 | if (!bitmap || !test_bit(offset, bitmap->bitmap)) |
| 1052 | goto err; | 1052 | goto err; |
| 1053 | 1053 | ||
| 1054 | /* update bitmap and remove it if empty */ | 1054 | /* update bitmap and remove it if empty */ |
