]> git.proxmox.com Git - mirror_edk2.git/commit
Pass the correct TokenNumber into a CallbackOnSet notification function. The value...
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 11 Feb 2010 03:51:17 +0000 (03:51 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 11 Feb 2010 03:51:17 +0000 (03:51 +0000)
commitb07a5b68adaaab0a3bce3e0fb8862e9e03453cb5
treec158472f0cce3490d8d9a705889bf5dea06269e3
parent736c5dd5804a6d8a043b1c55528d3d89df68db56
Pass the correct TokenNumber into a CallbackOnSet notification function.  The value being passed in was off by 1.

This would not normally cause an issue because the correct notification function was being called.  There is only an issue if the same notification function is being used for multiple tokens, and the notification function needs to use the TokenNumber parameter to determine which token setting caused the callback function to be called.

Update the logic so the CallbackOnSet notification functions are not called with the internal PCD database lock in the acquired state.  This allows other PCD Get/Set operations to be performed from within a CallbackOnSet notification.

Update logic so the PCD database lock is not left in the acquired state when SetWorker() returns EFI_INVALID_PARAMETER.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9981 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Universal/PCD/Dxe/Service.c