crypto: tegra-aes: do not track ssk slot
Varun Wadekar [Mon, 31 Jan 2011 05:39:51 +0000 (10:39 +0530)]
ssk slot is write-locked so the driver should not
track in its free slot pool.

Original-Change-Id: Ibf04a949a2894ef2c41851e7e92c13901c873bf2
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/22161
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R7ae05f50294e8a7f0241296aee53cda57aa36a5f

drivers/crypto/tegra-aes.c

index 028a220..6d2f1c8 100644 (file)
@@ -1046,6 +1046,8 @@ static int tegra_aes_probe(struct platform_device *pdev)
        spin_lock_init(&list_lock);
        spin_lock(&list_lock);
        for (i = 0; i < AES_NR_KEYSLOTS; i++) {
+               if (i == SSK_SLOT_NUM)
+                       continue;
                dd->slots[i].available = true;
                dd->slots[i].slot_num = i;
                INIT_LIST_HEAD(&dd->slots[i].node);