diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-06-15 14:11:04 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-06-17 20:48:19 +0200 |
commit | b8444429562c8eda11c9c72f180092fa6841213f (patch) | |
tree | ec59f9d195db287356fa75dce0b67b001e415254 /ncr-data.c | |
parent | af3bdf3d06bebc8e85b262742c88ac01fa491c7b (diff) | |
download | kernel-crypto-b8444429562c8eda11c9c72f180092fa6841213f.tar.gz kernel-crypto-b8444429562c8eda11c9c72f180092fa6841213f.tar.xz kernel-crypto-b8444429562c8eda11c9c72f180092fa6841213f.zip |
Descriptors start at 1.
Diffstat (limited to 'ncr-data.c')
-rw-r--r-- | ncr-data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ncr-data.c b/ncr-data.c index 0a5d8eee239..ce9635c0956 100644 --- a/ncr-data.c +++ b/ncr-data.c @@ -50,7 +50,7 @@ void ncr_data_list_deinit(struct list_sem_st* lst) static ncr_data_t _ncr_data_get_new_desc( struct list_sem_st* lst) { struct data_item_st* item; -int mx = 0; +int mx = 1; list_for_each_entry(item, &lst->list, list) { mx = max(mx, item->desc); |